获取选中的radio的value值

html:<div id="bb">

<input  name="cc" type="radio" value="4" >hh</input>

<input  name="cc" type="radio" value="5" >hha</input>

<input  name="cc" type="radio" value="6" >hhb</input>
                             

</div>

js:var aa = $('#bb input[name="cc"]:checked ').val();

posted @ 2015-09-25 14:55  你若盛开  阅读(816)  评论(0编辑  收藏  举报