jquery让select不可用的方法:1、使用attr方法进行禁用,代码为【$("#select").attr("disabled","disabled")】;2、jquery让select不可用,代码为【

本教程操作环境:windows7系统、jquery3.2.1版本,DELL G3电脑,该方法适用于所有品牌电脑。
推荐:jquery教程
jquery让select不可用的方法:
一般使用attr方法进行禁用
$("#select").attr("disabled","disabled");取消禁用
主要使用removeAttr方法移除disabled属性来取消禁用
$("#select").removeAttr("disabled");示例:jquery让select不可用
Title
更多编程相关知识,请访问:编程教学!!










