标签:
1.开启disabled,是input不可以编辑
$("#id").attr("disabled","disabled");
2.关闭disabled
$("#id").removeAttr("disabled");
普通js中是这样写的,document.getElementById("id").disabled = false;
错误写法:$("#id").attr("disabled","false");
标签:
原文地址:http://www.cnblogs.com/klbc/p/4936918.html