62,047
社区成员
发帖
与我相关
我的任务
分享
<tr>
<td><input type="text" id="aa" /></td>
</tr>
<tr>
<td><td><input type="text" id="bb" /></td>
</tr>
<tr>
</td>
</tr>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>无标题页</title>
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#abc").click(function(){
$("#aa").closest("tr").next().hide();
})
})
</script>
</head>
<body>
<table>
<tr>
<td>
<input type="text" id="aa" />
</td>
</tr>
<tr>
<td>
<input type="text" id="bb" />
</td>
</tr>
<tr>
<td>fasdds</td>
</tr>
</table>
<a id="abc">点击隐藏aa下面的tr</a>
</body>
</html>