nmarano
asked on
validate checkbox
Experts-
Can someone help me with ensuring that at least one check box is selected?
<td width="110"><input type="checkbox" class="checkbox" name="windows" value="Windows" /><label for="windows">Windows</lab el></td>
<td width="130"><input type="checkbox" class="checkbox" name="gutterhelmet" value="Gutter Helmet" /><label for="gutterhelmet">Gutter Helmet</label></td>
</tr>
<tr>
<td width="110"><input type="checkbox" class="checkbox" name="roofing" value="Roofing" /><label for="roofing">Roofing</lab el></td>
<td width="130"><input type="checkbox" class="checkbox" name="icedefense" value="Ice Defense" /><label for="icedefense">Ice Defense</label></td>
</tr>
<tr>
<td width="110"><input type="checkbox" class="checkbox" name="siding" value="Siding" /><label for="siding">Siding</label ></td>
<td width="130"><input type="checkbox" class="checkbox" name="drenergy" value="Dr. Energy Saver" /><label for="drenergy">Dr. Energy Saver</label></td>
Any help would be appreaicted
Thanks
Nick
Can someone help me with ensuring that at least one check box is selected?
<td width="110"><input type="checkbox" class="checkbox" name="windows" value="Windows" /><label for="windows">Windows</lab
<td width="130"><input type="checkbox" class="checkbox" name="gutterhelmet" value="Gutter Helmet" /><label for="gutterhelmet">Gutter Helmet</label></td>
</tr>
<tr>
<td width="110"><input type="checkbox" class="checkbox" name="roofing" value="Roofing" /><label for="roofing">Roofing</lab
<td width="130"><input type="checkbox" class="checkbox" name="icedefense" value="Ice Defense" /><label for="icedefense">Ice Defense</label></td>
</tr>
<tr>
<td width="110"><input type="checkbox" class="checkbox" name="siding" value="Siding" /><label for="siding">Siding</label
<td width="130"><input type="checkbox" class="checkbox" name="drenergy" value="Dr. Energy Saver" /><label for="drenergy">Dr. Energy Saver</label></td>
Any help would be appreaicted
Thanks
Nick
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Big- Thanks, but I am unable to use jQuery.
chaituu- Thank you! The code works perfectly. One last question, is there a way for me to remove where the pop up says, "The page at ....." and only have it say Please select at least one check box?
THanks
Nick
image002.png
chaituu- Thank you! The code works perfectly. One last question, is there a way for me to remove where the pop up says, "The page at ....." and only have it say Please select at least one check box?
THanks
Nick
image002.png
actuallly am not getting that pop up ;may be you need to chnage some settings in the browser.i have tested in IE8 and not getting any popup message like that.
ASKER
Thank you very much for your help!
http://stackoverflow.com/questions/11512448/validation-for-at-least-one-checkbox