<script type=”text/javascript”>
var me = $(“#td2”).parents(“tr”);
var index = $(“#table”).index(me);
alert(“index : “+index); // 1
</script>
<table id=”table”>
<tr>
<td id=”#td1″>1</td>
<td>2</td>
</tr>
<tr>
<td id=”td2″>3</td>
<td>4</td>
</tr>
<tr>
<td id=”td3″>5</td>
<td>6</td>
</tr>
</table>