> What happens if you call .checked() with no args? Wouldn't that
> automatically read as "false", leading to $( '#foo' ).checked() unchecking
> the checkbox?
>
> If called without any arguments, it should behave as if called with true
> as an argument.
Sure, makes sense to me:
$.fn.checked = function(b) {
if ( b || b == undefined )
this.attr( "checked", "checked" );
else
this.removeAttr( "checked" );
};
--John
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/