Click to See Complete Forum and Search --> : How to set at run time the value for a radio button with ether vbscript or javascript


mpoincare
January 11th, 2003, 10:28 PM
I want to set at run time the value for a radio button with either vbscript or javascript, preferably vbscript. For instance if I have on a page this radio button:
<input name="rdoOption" value="1" >
How I can make selected the radio button according to a value passed from an other form ( for instance: request.form("txtNumber")?

GazDev
January 20th, 2003, 06:09 AM
Most probably you can give your radio element an ID and refer to that with : MyRadioElement.selected = true.