How can I check if a jQuery element is disabled?

更新于
2026-09-30 20:27:16
0阅读来源:SEO资讯
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计87个文字,预计阅读时间需要1分钟。

How can I check if a jQuery element is disabled?

将文件内容简化并输出,不超过100字,直接输出结果:

gistfile1.txt: $(text)

gistfile1.txt

$("#radiobutton").attr("checked","checked"); $("#u2").removeAttr("checked"); $("#checkbox").attr("checked",'true'); $("radiobutton").attr("disabled","true"); 如果在一个页面反复读取数据,则设置属性后需要执行:$("#radiobutton").click();才会显示后面更新的数据

How can I check if a jQuery element is disabled?