开发者

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

开发者 https://www.devze.com 2023-01-17 10:26 出处:网络
I want to get the value of disabled text box in ou开发者_如何学JAVAr next jsp but I am getting a 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

精彩评论

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

关注公众号