jquery禁用select和取消禁用

$("#id").attr("disabled","disabled");  
$("#id").removeAttr("disabled");  

添加就是attr ,取消则是reomveAttr(注意A大写)

 

推荐下自己的网站:

一个php后台极速开发框架 https://www.lotusadmin.top/

一个有趣的网站   https://www.waytomilky.com/

posted @ 2016-11-18 10:05  山上小和尚  阅读(17757)  评论(0编辑  收藏  举报