HTML:
<table class="tdiv" id="tnv">
<tr>
<td id="isrdata1">1</td> <-- Need get a value -->
<td>Something bla bla</td>
</tr>
<tr>
<td id="isrdata2">2</td>
<td>Something bla bla</td>
</tr>
</table>
jQuery:
$('#tnv').find('tr').click( function(){
var isrdata = ($(this).index()+1);
console.log(isrdata);
});
如何从中获取#isrdata
价值tr
?