Question
Radio button populating checkbox
Ok this might be an odd request but what I am tring to do is
I have a form that has two radio buttone a yes and a no. If the
user selects yes then I want an check box to be checked and if the
user selects a no then I want it to be unselected. I can not for
the lif of me figure out how to do this.
Radio button code:
<cfinput type="radio" name="YesNo" label="Yes" value="1" onClick="Update(1)" checked/>
<cfinput type="radio" name="YesNo" label="No" value="0" onClick="Update(0)" />
the checkbox I am trying to control
<cfinput type="checkbox" name="FQID_16" label="<= Check if true" value="1" tooltip="#qryFQID_16.popuphelp#" width="115" onchange="removeSelection()" visible="true"/>
I can only think I need to write some javascript to handle this event but unsure how to do this since I am new to CF.
Any help would be appreciated.
Radio button code:
<cfinput type="radio" name="YesNo" label="Yes" value="1" onClick="Update(1)" checked/>
<cfinput type="radio" name="YesNo" label="No" value="0" onClick="Update(0)" />
the checkbox I am trying to control
<cfinput type="checkbox" name="FQID_16" label="<= Check if true" value="1" tooltip="#qryFQID_16.popuphelp#" width="115" onchange="removeSelection()" visible="true"/>
I can only think I need to write some javascript to handle this event but unsure how to do this since I am new to CF.
Any help would be appreciated.
