【发布时间】:2014-09-23 11:49:13
【问题描述】:
我有下一个复选框:
<input type="checkbox" value="true" name="permanentEmployee" checked="" id="permanentEmployee" disabled="">
我已将属性disabled 设置为true 并提交了表单
$("#permanentEmployee").prop('disabled', true);`
在服务器端,如果我这样做:
request.getParameter("permanentEmployee")
我得到的值是 Null,但如果我不禁用复选框,我会得到正确的值(即 True)。为什么即使选中,我也没有将禁用的复选框值设为 True?
【问题讨论】:
标签: javascript jquery html checkbox