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);
精彩评论