Author and all-around good cowpoke
Joined: Mar 22, 2000
I think the first step would be to examine the generated HTML to see if the values are really there. Do you have a prototype in plain HTML that works correctly? Bill
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.
Joined: Nov 06, 2000
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