I have some rows in table having classes like:
<tr class="DrillDownRow">
<td>211</td>
<td>namex</td>
<td>4</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>4</td>
</tr>
<tr class="DrillDownRow">
<td>212</td>
<td>namey</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>3</td>
<td>0</td>
<td>0</td>
<td>3</td>
</tr>
now when one row clicked i get it in jquery and perform some work. Now i want to get index of td on which mouse clicked:
$(document).ready(function() {
$('.DrillDownRow').css('cursor','pointer');
$(document).on('click',".DrillDownRow", function(){
//here i want to check on which td it clicked, like index number of clicked td.
});
});