Jquery 失去 input 的type 为 radio 的选中的value

Jquery 得到 input 的type 为 radio 的选中的value$(“input[nameradio_name]:checked”).val()input ty

Jquery 得到 input 的type 为 radio 的选中的value

$(“input[name='radio_name']:checked”).val()
<input type="radio" value="1" name="radio_name" ?/>1

<input type="radio" value="2"? name="radio_name" />2

<input type="radio" value="3"? name="radio_name" />3