<input type="radio" name="gender" value="男" >男</input>
<
input
type
=
"radio"
name
"gender"
value
"男"
>男</input>
<input type="radio" name="gender" value="女" >女</input>
"女"
>女</input>
获取选中按钮的value:var gender = $('input[name="gender"]:checked').val();
获取选中按钮的value:var gender = $(
'input[name="gender"]:checked'
).val();
参考文章:http://blog.csdn.net/lubingda/article/details/7227051