now when i click Evaluate button, i want to know which radio field was selected, thats why I kept the name of both radio same.
} i donot get the alerts when any of the radio is selected.. please let me know the reason.. thanks to you all.
For radio buttons and checkboxes, you want to check the "checked" state. if(yourControlName.checked) doWhatEver....
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Joined: Jun 18, 2001
bosun how do i retrieve the value of the checkbox. I have following 2 checkboxes: <input type="radio" name="Overnight" value="overnight"> Overnight<br> <input type="radio" name="Overnight" value="snail"> 3-5 days<br> document.myform.Overnight.checked, will let me know that checkbox is selected but wouldn't tell me which checkbox ?? how can i detemine which checkbox is selected ? thanks