when i click on the radio button, the text box for fname is showed. If i don't enter anything into text box then hit submit, the pop up will display with code for validate below. When i hit OK to go back,
the text box is gone but the radio button still checked. How can i keep the text box stays on the page?
<cfform name="myform" action="action.cfm">
<cfinput type="radio" name="approve" value="1" onclick="show('d0','d1')" />
<cfinput type="text" name="fname">
<cfinput type="submit" name="submit" value="Add">
<cfif Not Len(Trim(form.fname))>
alert("Name can not be blank.");
i am not good at this, can you please provide any example?