Hello - I have the need to deselect one check box if another is selected. Here's an example:
The customer should not be able to select the ACID_DONTCLEAN checkbox and one of the other ACID_ boxes. How can I uncheck ACID_DONTCLEAN if they select something else?
I know radio buttons would be the easiest way, but the client wants to see a value passed for all of the boxes. When I post to the dB and mail script, I first set a value of Not Selected when the checkbox value isn't present.
Thanks.
Code:
<table width="400" border="0">
<tr>
<td COLSPAN="3"><font color="#000066" size="2" face="Verdana, Arial, Helvetica, sans-serif">
<strong><u>Hull Cleaning and Shrink Wrap (parts incl):</u></strong></font></td>
</tr>
<tr>
<td width="259"><font color="#000066" size="2" face="Verdana, Arial, Helvetica, sans-serif">Do
Not Acid Clean</font></td>
<td width="99"> </td>
<td width="28"><input name="ACID_DONTCLEAN" type="checkbox" value="yes"></td>
</tr>
<tr>
<td><font color="#000066" size="2" face="Verdana, Arial, Helvetica, sans-serif">Light
Acid </font></td>
<td><font color="#000066" size="2" face="Verdana, Arial, Helvetica, sans-serif">$8.40
/ ft</font></td>
<td><input name="ACID_LIGHT" type="checkbox" value="yes"></td>
</tr>
<tr>
<td><font color="#000066" size="2" face="Verdana, Arial, Helvetica, sans-serif">Standard
Acid</font></td>
<td><font color="#000066" size="2" face="Verdana, Arial, Helvetica, sans-serif">$13.00
/ ft</font></td>
<td><input name="ACID_STANDARD" type="checkbox" value="yes"></td>
</tr>
<tr>
<td><font color="#000066" size="2" face="Verdana, Arial, Helvetica, sans-serif">Standard
Acid w/ Zebra Mussels</font></td>
<td><font color="#000066" size="2" face="Verdana, Arial, Helvetica, sans-serif">$15.25
/ ft</font></td>
<td><input name="ACID_WITHZEBRA" type="checkbox" value="yes"></td>
</tr>
<tr>
<td><font color="#000066" size="2" face="Verdana, Arial, Helvetica, sans-serif">Unit
Only Acid Clean</font></td>
<td><font color="#000066" size="2" face="Verdana, Arial, Helvetica, sans-serif">$55.00</font></td>
<td><input name="ACID_UNITONLY" type="checkbox" value="yes"></td>
</tr>
<tr>
<td colspan="3"><font color="#000066" size="2" face="Verdana, Arial, Helvetica, sans-serif">***Gordy's
will acid wash every boat requiring cleaning unless specifically
instructed.</font></td>
</tr>
<tr>
<td><font color="#000066" size="2" face="Verdana, Arial, Helvetica, sans-serif">Shrink
Wrap Over Rubrail Below 8'6"</font></td>
<td><font color="#000066" size="2" face="Verdana, Arial, Helvetica, sans-serif">$12.95
/ ft</font></td>
<td><input name="SHRINK_OVERRUB" type="checkbox" value="yes"></td>
</tr>
<tr>
<td><font color="#000066" size="2" face="Verdana, Arial, Helvetica, sans-serif">Shrink
Wrap Under Rubrail</font></td>
<td><font color="#000066" size="2" face="Verdana, Arial, Helvetica, sans-serif">$16.95
/ ft</font></td>
<td><input name="SHRINK_UNDERRUB" type="checkbox" value="yes"></td>
</tr>
</table>
I know radio buttons would be the easiest way, but the client wants to see a value passed for all of the boxes. When I post to the dB and mail script, I first set a value of Not Selected when the checkbox value isn't present.
Thanks.