如果html为 <input type="radio" id="test" name="test" value="1" /><span>测试1</span>
则js为:
$("input[name='test']:checked").next("span").text()


如果html为
<input type="radio" id="test" name="test" value="1" /> <label for="test">测试1</label> 

<input type="radio" id="test1" name="test" value="2" /> <label for="test1">测试2</label>

则js为:$("input[name='test']:checked").next("label").text()
 
 

相关文章:

  • 2021-10-22
  • 2022-12-23
  • 2021-11-16
  • 2022-12-23
  • 2022-12-23
  • 2022-02-26
  • 2021-11-21
  • 2021-11-10
猜你喜欢
  • 2022-12-23
  • 2021-11-10
  • 2022-12-23
  • 2022-12-23
  • 2021-12-07
  • 2022-12-23
相关资源
相似解决方案