jquery-- get the value input radio radio button

html

<input type="radio" name="sex" value="man" checked>  man
<input type="radio" name="sex" value="woman">  woman

 jquery

("[name='sex']:checked").val();

  

 

Guess you like

Origin www.cnblogs.com/lutt/p/12330116.html