Hi I have what seems like a simple question but it has baffled me for hours now. How do I set the value of an HTML radio button to a predefined javascript value? I am trying to get the value of radioButton to = the javascript variable named countryText which is defined earlier in the page.
The following does not work obviously:
<input name="radioButton" type="radio" class="box" value="javascript:countryText" checked="checked" "/>
Any advice? thanks.
The following does not work obviously:
<input name="radioButton" type="radio" class="box" value="javascript:countryText" checked="checked" "/>
Any advice? thanks.