How can I check if a jQuery element is disabled?
- 内容介绍
- 文章标签
- 相关推荐
本文共计87个文字,预计阅读时间需要1分钟。
将文件内容简化并输出,不超过100字,直接输出结果:
gistfile1.txt: $(text)
gistfile1.txt$("#radiobutton").attr("checked","checked"); $("#u2").removeAttr("checked"); $("#checkbox").attr("checked",'true'); $("radiobutton").attr("disabled","true"); 如果在一个页面反复读取数据,则设置属性后需要执行:$("#radiobutton").click();才会显示后面更新的数据
本文共计87个文字,预计阅读时间需要1分钟。
将文件内容简化并输出,不超过100字,直接输出结果:
gistfile1.txt: $(text)
gistfile1.txt$("#radiobutton").attr("checked","checked"); $("#u2").removeAttr("checked"); $("#checkbox").attr("checked",'true'); $("radiobutton").attr("disabled","true"); 如果在一个页面反复读取数据,则设置属性后需要执行:$("#radiobutton").click();才会显示后面更新的数据

