Update updated question:
$('#lblName').parent().index();
or
document.getElementById('lblName').parentNode.cellIndex
Original answer:
Use .index().
$('#lblName').closest('tr').index();
The method .index()has several different usage patterns.
This means that "take the first element corresponding to the selector and return its index based on a zero value among its siblings."
Or initially do it ...
document.getElementById('lblName').parentNode.parentNode.rowIndex
Or combine the two ...
$('#lblName').closest('tr')[0].rowIndex;
user1106925
source
share