1
<input type="radio" name="opcao" id="1" value="op1">
<input type="radio" name="opcao" id="2" value="op2">
<input type="radio" name="opcao" id="3" value="op4">
<input type="radio" name="opcao" id="4" value="op8">
How do I take the value of each option and use in a Javascript function from a onclick
?
Possible duplicate of Get checkbox values with javascript
– Sveen
Possible duplicate of Pick up value from a radio button
– Ricardo Pontual