使用jquery获取单选按钮radio的值
<
input
type
=
"radio"
name
=
"gender"
value
=
"男"
>男</input>
<
input
type
=
"radio"
name
=
"gender"
value
=
"女"
>女</input>
获取选中按钮的value:var gender = $(
'input[name="gender"]:checked'
).val();
<
input
type
=
"radio"
name
=
"gender"
value
=
"男"
>男</input>
<
input
type
=
"radio"
name
=
"gender"
value
=
"女"
>女</input>
获取选中按钮的value:var gender = $(
'input[name="gender"]:checked'
).val();