jquery onclick获取当前对象

来源:互联网 发布:苹果变音软件 编辑:程序博客网 时间:2024/05/17 09:13
你的页面都写错了">都落下了。那样很难测对的。
</table>
  <table width="200" border="0" align="left" cellpadding="0" cellspacing="0" class="tab">
    <tbody>
      <tr>
        <td height="25">内容</td>
      </tr>
    </tbody>
    <tbody  onclick="jumpRight(this)" class="rrr">
      <tr>
        <td height="25">首页1</td>
      </tr>
    </tbody>
    <tbody onclick="jumpRight(this)" class="qqq">
      <tr>
        <td height="25">首页2</td>
      </tr>
    </tbody>
  </table>
aaaaaaa
  <input type="button" name="" value="dadfas" onclick="ddd()">

</BODY>
</HTML>
<script language="javascript">
function jumpRight(jump){

  $(jump).text("tr_on");
}

原创粉丝点击