IWeb
03-31-2004, 06:22 AM
Hello,
I have 5 radiobuttons (not located in a form):
<input type="radio" name="rdbLevel" value="1">
.
.
.<input type="radio" name="rdbLevel" value="5">
When I try to access a radio button with
document.getElementById("rdbLevel").value
I get only the value of the first radiobutton (of course only when it's checked).
How can I check which radionbutton has been checked and how can I retrieve its value?
thanks,
I have 5 radiobuttons (not located in a form):
<input type="radio" name="rdbLevel" value="1">
.
.
.<input type="radio" name="rdbLevel" value="5">
When I try to access a radio button with
document.getElementById("rdbLevel").value
I get only the value of the first radiobutton (of course only when it's checked).
How can I check which radionbutton has been checked and how can I retrieve its value?
thanks,