禁用下拉框

//下拉框禁用
$("select").each(function () {
  $("#" + this.id).attr("disabled", true);
});

启用下拉框

//下拉框启用
$("select").each(function () {
    $("#" + this.id).removeAttr("disabled");
});

  

相关文章:

  • 2022-01-15
  • 2021-05-19
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-04
  • 2022-12-23
  • 2021-11-17
  • 2021-10-19
相关资源
相似解决方案