我有这个表:
<table border="1" id="table">
<tr>
<th>Id</th>
<th>action</th>
</tr>
<tr>
<td>123</td>
<td><a href="#">select</a></td>
</tr>
<tr>
<td>456</td>
<td><a href="#">select</a></td>
</tr>
<tr>
<td>789</td>
<td><a href="#">select</a></td>
</tr>
</table>
result =<input type="text">
使用javascript如何在单击选定的href行时在输入中显示id值,谢谢