码迷,mamicode.com
首页 > 其他好文 > 详细

获取选中的radio的value值

时间:2015-09-25 16:14:53      阅读:125      评论:0      收藏:0      [点我收藏+]

标签:

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();

获取选中的radio的value值

标签:

原文地址:http://www.cnblogs.com/donotgiveup/p/4838248.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!