Hi all
How to check that "option A" is selected in the form?
i have something like this:
javascript:
-------------------------------------------
fnCheck(){
if(document.frm 1.durationChang e[0]=='...don't know
what..........' )
{
alert('selected A');
}
}
html
-----------------------------------------------
<form name="frm1" >
<input type="radio" name="durationC hange" value="1"option A
<input type="radio" name="durationC hange" value="2"option B
<input type="radio" name="durationC hange" value="3"option C
<input type="submit" onClick="fnChec k();return(fals e);">
</form>
Thanks 4 help
Sebastian
How to check that "option A" is selected in the form?
i have something like this:
javascript:
-------------------------------------------
fnCheck(){
if(document.frm 1.durationChang e[0]=='...don't know
what..........' )
{
alert('selected A');
}
}
html
-----------------------------------------------
<form name="frm1" >
<input type="radio" name="durationC hange" value="1"option A
<input type="radio" name="durationC hange" value="2"option B
<input type="radio" name="durationC hange" value="3"option C
<input type="submit" onClick="fnChec k();return(fals e);">
</form>
Thanks 4 help
Sebastian
Comment