novice2004
Programmer
Does anybody know about script that disable and enable
checkboxes based on radio choice.
Default is Animal_AllergicYesNo is "No" and
checkboxes for Dogs, Cats, ... are disabled
When client clicks yes - Dogs, Cats, ... get enabled
and client can select checkboxes.
<TR>
<TD class=contactUsFont height=5 width="" align="right">
Are you allergic to any animals?
</TD>
<TD height=5 align="left">
<INPUT type=radio onFocus="promptEntry('')" value=Yes name="Animal_AllergicYesNo">Yes
<INPUT type=radio onFocus="promptEntry('')" value=No name="Animal_AllergicYesNo">No
 
If yes, which animals?
<INPUT type=checkbox onFocus="promptEntry('')" name="Animal_Allergic1" value="Dogs">Dogs
<INPUT type=checkbox onFocus="promptEntry('')" name="Animal_Allergic2" value="Cats">Cats
<INPUT type=checkbox onFocus="promptEntry('')" name="Animal_Allergic3" value="Birds">Birds
<INPUT type=checkbox onFocus="promptEntry('')" name="Animal_Allergic4" value="Other">Other
</TD>
</TR>
checkboxes based on radio choice.
Default is Animal_AllergicYesNo is "No" and
checkboxes for Dogs, Cats, ... are disabled
When client clicks yes - Dogs, Cats, ... get enabled
and client can select checkboxes.
<TR>
<TD class=contactUsFont height=5 width="" align="right">
Are you allergic to any animals?
</TD>
<TD height=5 align="left">
<INPUT type=radio onFocus="promptEntry('')" value=Yes name="Animal_AllergicYesNo">Yes
<INPUT type=radio onFocus="promptEntry('')" value=No name="Animal_AllergicYesNo">No
 
If yes, which animals?
<INPUT type=checkbox onFocus="promptEntry('')" name="Animal_Allergic1" value="Dogs">Dogs
<INPUT type=checkbox onFocus="promptEntry('')" name="Animal_Allergic2" value="Cats">Cats
<INPUT type=checkbox onFocus="promptEntry('')" name="Animal_Allergic3" value="Birds">Birds
<INPUT type=checkbox onFocus="promptEntry('')" name="Animal_Allergic4" value="Other">Other
</TD>
</TR>