开发者

enable/disable checkbox in IE

i want to enable/disable checkbox开发者_StackOverflow using jQuery. I am using

$("#checkbox").attr("disabled", true);

This works fine in FF but not in IE.


$("#checkbox").attr("disabled", "disabled");

is correct and better


$("#checkbox").attr("disabled", "disabled");

or if you are using jquery 1.6+

$("#checkbox").prop("disabled", true);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜