jquery禁用下拉框

禁用下拉框

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

启用下拉框

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

  

posted @ 2016-12-05 16:08  冷战  阅读(8998)  评论(0编辑  收藏  举报