Question
enable disable control
I am trying to enable or disable an cfinput type of datefield
and having problems getting it to work with what I am doing. I have
a simple radiogroup with yes or no as the option. If yes is
selected the datefield is enabled and/or visible and if no is
selected the datefield is disabled and/or invisible.
My code:
<cfinput type="radio" name="listoncalendar" value="Yes" onclick="document.form.listoncalendardate.visible = true" >
<cfinput type="radio" name="listoncalendar" value="No" onclick="document.form.listoncalendardate.visible = false">
<cfinput type="datefield" name="listoncalendardate">
Where am I going wrong?
My code:
<cfinput type="radio" name="listoncalendar" value="Yes" onclick="document.form.listoncalendardate.visible = true" >
<cfinput type="radio" name="listoncalendar" value="No" onclick="document.form.listoncalendardate.visible = false">
<cfinput type="datefield" name="listoncalendardate">
Where am I going wrong?
