11
我有這個表得到一些父元素ID,以發送到javascript函數
<table id="tblId">
<thead>
<tr>
<th>View Name</th>
<th>View Description</th>
</tr>
</thead>
<tbody>
<tr id="1">
<td>Name</td>
<td><span onclick="jsFunction()">description</span></td>
</tr>
<tr id="2">
<td>Name</td>
<td><span onclick="jsFunction()">description</span></td>
</tr>
</tbody>
</table>
在每個跨度我需要發送的js函數的具體行的行號,如何做的onclick事件我那樣做?
謝謝!
或者乾脆'tr.id' – dfsq 2012-01-01 08:38:35
謝謝你非常 – Ovi 2012-01-01 08:50:47