That works very well.  Could you also grey out the unchecked
checkboxes after 3 are checked?

> You can try this:
> $.fn.limit = function(n) {
>   var self = this;
>   this.click(function(){ return (self.filter(":checked").length<=n); });}
>
> $("input:checkbox").limit(3);

Reply via email to