jquery 添加字段不可编辑,鼠标放上去变成禁用标志,但是提交前一定要将此属性去除,否则传值传不过去
添加和去除
$("#bedNOSel").attr("disabled", true);
$('#bedNOSel').attr("disabled",'disabled');
$("#bedNOSel").attr("disabled", false);
$("#bedNOSel").removeAttr("disabled");
添加和去除
$("#bedNOSel").attr("disabled", true);
$('#bedNOSel').attr("disabled",'disabled');
$("#bedNOSel").attr("disabled", false);
$("#bedNOSel").removeAttr("disabled");