×

JQuery设置和去除disabled属性的5种方法总结

作者:Terry2017.02.04来源:Web前端之家浏览:10779评论:0
关键词:JQueryJS
复制代码 代码如下:

//两种方法设置disabled属性
$('#areaSelect').attr("disabled",true);
$('#areaSelect').attr("disabled","disabled");

//三种方法移除disabled属性
$('#areaSelect').attr("disabled",false);
$('#areaSelect').removeAttr("disabled");
$('#areaSelect').attr("disabled","");

您的支持是我们创作的动力!
温馨提示:本文作者系Terry ,经Web前端之家编辑修改或补充,转载请注明出处和本文链接:
https://jiangweishan.com/article/svg1486137600775.html

网友评论文明上网理性发言已有0人参与

发表评论: