<table>
<tr>
<td name="name1" value="hello" onclick="helloWorld(this)"></td>
<td name="name2" value="hello"></td>
<td name="name3" value="hello"></td>
<td name="name4" value="hello"></td>
</tr>
<tr>
<td name="name1" value="hello"></td>
<td name="name2" value="hello" ></td>
<td name="name3" value="hello"></td>
<td name="name4" value="hello"></td>
</tr>
<tr>
<td name="name1" value="hello" ></td>
<td name="name2" value="hello"></td>
<td name="name3" value="hello" ></td>
<td name="name4" value="hello"></td>
</tr>
<table>
<javascript>
function helloWorld(e){
$(e).parent().parent().children().find("[name='name1']").val()
}
<javascript>
网友评论