0
How would I get the values of the radio button? I tried with the code below, but only returns me the value of the first:
<input type='radio' name='Seguro' id="seguro" onchange="soma()" value='Sim'> Sim
<input type='radio' name='Seguro' id"seguro" onchange="soma()" value='Não'> Não
And the javascript ( test ):
function soma(){
....
alert(document.getElementById("seguro").value);
....
}
take a look at this, maybe it won’t help you
 http://stackoverflow.com/questions/604167/how-can-we-access-the-value-of-a-radio-button-using-the-dom
– Cleber Azevedo