我想在我们的下一个jsp中获取禁用文本框的值,但我得到空值 [英] I want to get the value of disabled text box in our next jsp but i am getting null value
本文介绍了我想在我们的下一个jsp中获取禁用文本框的值,但我得到空值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在我们的下一个jsp中获取禁用的文本框的值,但我得到一个NULL值。
有什么想法可能会出错?
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?.
推荐答案
标有 disabled =disabled
在发布表单时,不要将它们的值发送到服务器。您可以使用 readonly = readonly
属性,以便仍然使该字段不可由用户编辑,但在提交表单时将初始值发送到服务器。
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.
这篇关于我想在我们的下一个jsp中获取禁用文本框的值,但我得到空值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文