On Jul 9, 11:32 pm, "Sean Catchpole" <[EMAIL PROTECTED]> wrote:
> $.fn.limit = function(n) {
>   var self = this;
>   this.click(function(){ return (self.filter(":checked").length<=n); });}
>
> $("input:checkbox").limit(3);

Ever the skeptic of code which looks too simple, i tried that out...
it actually does work. Somehow.

/me bows and scrapes, once again, to the elegance of jQuery.

Reply via email to