Hi
I have below code . I also want to get first column value of that col which has been clicked
<script type="text/javascript"> $(document).ready(function () { $(".gv > tbody > tr:not(:has(table, th))") .css("cursor", "pointer") .click(function (e) { $(".gv td").removeClass("highlite"); var $cell = $(e.target).closest("td"); $cell.addClass('highlite'); var $currentCellText = $cell.text(); var $colIndex = $cell.parent().children().index($cell); var $colName = $cell.closest("table") .find('th:eq(' + $colIndex + ')').text(); });
}); </script>
Thanks