时间:2021-10-21 09:11:05 | 栏目:jquery | 点击:次
话不多说,附上实例代码,仅供大家参考
禁用文本框
//文本框禁用
$("input[type='text']").each(function () {
$("#" + this.id).attr("disabled", true);
});
启用文本框
//文本框启用
$("input[type='text']").each(function () {
$("#" + this.id).removeAttr("disabled");
});