How can I code to check with radio button is checked? If no radio is checked, i want to do A, if radio1 is checked, do B and if Radio2 is checked, do C. but how do I find out which radio button is checked?
I've tried using if(document.form1.selection.checked.value == "radio1" but that doesn't work
plz, any ideas?
Code:
<form name="form1">
<input type="radio" name="selection" value="radio1">
<input type="radio" name="selection" value="radio2">
I've tried using if(document.form1.selection.checked.value == "radio1" but that doesn't work
plz, any ideas?