John Resig schrieb: >> John, these are great additions, but please be advised that in some >> browsers this.attr('checked', 'checked') won't work as expected. > > Do you know which browsers those are offhand? It'll help me to test > the methods, when I make them
I think there are overall inconstencies. I put up a test page: http://stilbuero.de/demo/jquery/checkbox.html There's no checked attribute in the HTML source. In Firefox if you set the checked attribute via attr the checkbox gets checked alright but removeAttr('checked') does not remove the checked state. I found in general that it's better for all those boolean attributes to set/unset the boolean value. HTH, Klaus _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/