如何在jquery中检索兄弟内容?

How can i change the css of 'My data'. Whenever user clicks on input radio, My data should change its text color. how to access it, as it is sibling of input whose id is 'b'. Please tell me both the ways, strong text accessing by parent and by sibling.strong text

<tr>
  <td>
      <input type='radio' id='b' name='option' value="b">
      My data
  </td>
</tr>
查看全部
duanjiao2978
duanjiao2978
2014/01/18 22:38
  • css
  • php
  • jquery
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

4个回复