If you have HTML that looks like this:
<input type='radio' name='choices' value='1'>
<input type='radio' name='choices' value='2'>
<input type='radio' name='choices' value='3'>
<input type='radio' name='choices' value='4'>
<input type='radio' name='choices' value='5'>
You would get the selected radio value with this:
$("input:radio[name='choices']:checked").val();
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…