John Resig schrieb:
> Or even more simply:
>
> $.fn.checked = function(b) {
> return b == undefined || b ?
> this.attr('checked', b) :
> this.removeAttr('checked');
> };
>
Ugh. Calling this.attr('checked', b) in the case of b == undefined just
returns the attribute, right? Creepy.
I like it.-- Jörn _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
