禁用文本框

//文本框禁用
$("input[type='text']").each(function () {
  $("#" + this.id).attr("disabled", true);
});

启用文本框

//文本框启用
$("input[type='text']").each(function () {
  $("#" + this.id).removeAttr("disabled");
});

  

相关文章:

  • 2022-12-23
  • 2021-10-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-29
  • 2021-09-08
  • 2021-11-29
猜你喜欢
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-21
  • 2022-12-23
相关资源
相似解决方案