Your checkboxes are an array (assuming that they all have the same name). Something like this might work:
$('input.checkboxfieldname').click(function(){ if ($(this).length >= 3) { alert('sorry, only three checkboxes allowed'); } }); -----Original Message----- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cfdvlpr Sent: Monday, July 09, 2007 2:43 PM To: jQuery (English) Subject: [jQuery] allow no more than 3 checkboxes checked I have about 10 checkbox input elements with the same name and I'd like to not let the user select more than 3 of them. How can I do this with Jquery?