Ah I see - sorry, I misunderstood. Well I have something on this page http://www.thelatestcars.co.uk/?offer=6908
Where you can only select 3 brochures. Perhaps there's something in here which will help ... $('.brochure').click(function() { var c=0; $('.brochure').each(function() { if (this.checked) {c++}; }); if (c > 3) { alert("Sorry but this offer only allows you to request a maximum of 3 Brochure request(s)"); $(this).attr('checked',false); } }); On Mon, Nov 17, 2008 at 3:45 PM, shapper <[EMAIL PROTECTED]> wrote: > > Not really ... I can select more than one. I just want to create a > restriction where one, and only one, of the first 3 must be selected. > > On Nov 17, 2:09 pm, "Michael Smith" <[EMAIL PROTECTED]> wrote: >> I think if you require only one to be selected you are probably better >> off with radio buttons. They are specified to allow only one. >> >> http://htmlhelp.com/reference/html40/forms/input.html >> >> "The radio and checkbox input types provide switches that can be >> turned on and off by the user. The two types differ in that radio >> buttons are grouped (by specifying the same NAME attribute on each >> INPUT) so that only one radio button in a group can be selected at any >> time. " >> >> On Mon, Nov 17, 2008 at 1:59 PM, shapper <[EMAIL PROTECTED]> wrote: >> >> > Hello, >> >> > I have a group of 8 CheckBoxes and I am validating so the user selects >> > at least on of the CheckBoxes. >> >> > It is working fine but now I would like a new rule that: >> > - Requires that one of the first 3 checkboxes to be selected ... and >> > only one! >> >> > Is this possible? >> >> > Thanks, >> > Miguel