Click to See Complete Forum and Search --> : Hiding a radio button


xara
02-11-2003, 12:15 PM
Hi,

I need to call a javascript function to hide a radio button in my form. The function is called from somewhere in my form. How can I do that.
<input type=radio name="switch" value="fisrt">
<input type=radio name="switch" value="last">


Thanks

Zach Elfers
02-11-2003, 05:08 PM
<input type=radio name="switch" value="fisrt">
<input type=radio name="switch" value="last">


<input type=radio name="switch" value="fisrt" onClick="this.form.last.style.display='none';">
<input type=radio name="switch" value="last" onClick="this.form.last.style.display='none';">