如下所示:
喜欢<input type="radio" name="likea" id="" value="3" /> 一般<input type="radio" name="likea" id="" value="2" /> 不喜欢<input type="radio" name="likea" id="" value="1" />
利用jQuery获取radio选中值
$("input[name='likea']:checked").val()去除所有radio选中状态
$('input:radio[name="likea"]').removeAttr('checked');
Copyright © 2019- 7swz.com 版权所有 赣ICP备2024042798号-8
违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务