开发者

I want to get the value of disabled text box in our next jsp but i am getting null value

I want to get the value of disabled text box in ou开发者_如何学JAVAr next jsp but I am getting a NULL value. Any idea what might be going wrong?.


Input fields marked with disabled="disabled" never send their value to the server when the form is posted. You could use the readonly="readonly" attribute in order to still make the field not editable by the user but send the initial value to the server when the form is submitted.


You can't get disable property value into server side. You need to run javascript to fetch disabled value into servlet.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜