i have a simple form like this :
<form id="formSearch">
<label><input type="radio" name="number" value="1">singular</label><br>
<label><input type="radio" name="number" value="2">plural</label><br><br>
<INPUT type="Submit" Value="Show" name="show" ></INPUT>
</form>
I want to get the "radio-value" of the selected button with javascript :
var account = document.getElementsByName("number").value;
do not give the correct response. if I give a trap :
alert(account);
the result is : undefined. I do not know where the harm, is there who is willing to help me, thanks