你的位置:首页 > 软件开发 > Java > jQuery 获取 radio 选中后的文字

jQuery 获取 radio 选中后的文字

发布时间:2016-09-20 15:00:05
如果html为 <input type="radio" id="test" name="test" value="1" /><span>测试1</span>则js为 ...
如果html为 <input type="radio" id="test" name="test" value="1" /><span>测试1</span><input type="radio" id="test1" name="test" value="2" /> <label for="test1">测试2</label>
则js为:$("input[name='test']:checked").next("label").text()
 
 

 

海外公司注册、海外银行开户、跨境平台代入驻、VAT、EPR等知识和在线办理:https://www.xlkjsw.com

原标题:jQuery 获取 radio 选中后的文字

关键词:jquery

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

可能感兴趣文章

我的浏览记录