i am trying to get the value of the raido boxes when you click on them. I am using jquery
i have been looking at change. click. i cant get any of them to work.
<table>
<tr>
<td>Some text 1 </td>
<td><input type="radio" value="txt1" name="myRadio" id="myRadio" /></td>
<td>Some text 2 </td>
<td><input type="radio" value="txt2" name="myRadio" id="myRadio" /></td>
<td>Some text 3 </td>
<td><input type="radio" value="txt3" name="myRadio" id="myRadio" /></td>
</tr>
</table>
Depends on how you try to get the value from them …
using the
.val()inside the click event works just fine..example at http://www.jsfiddle.net/aKTcu/
but your ID’s should be unique regardless, as it is invalid HTML otherwise..