How can I get the selected radio button value via jQuery? I tried:
var selectedPlan = $("input[name=Plan[packageId]]:checked'").val();
alert(selectedPlan);
bBt didn't work.
<td style="vertical-align: top;">
<input type="radio" value="1" name="Plan[packageId]">
<lable>3 Games</lable><br>
<input type="radio" value="2" name="Plan[packageId]">
<lable>5 Games</lable><br>
<input type="radio" value="3" name="Plan[packageId]">
<lable>10 Games</lable><br>
</td>
here is the fiddle http://jsfiddle.net/vk3z45an/