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

后端 未结 2 681
再見小時候
再見小時候 2020-12-20 14:50

I want to get the value of disabled text box in our next jsp but I am getting a NULL value. Any idea what might be going wrong?.

相关标签:
2条回答
  • 2020-12-20 15:16

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

    0 讨论(0)
  • 2020-12-20 15:18

    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.

    0 讨论(0)
提交回复
热议问题