I have binded the gridview from client side using jQuery Ajax. Now i want to change the background color of the selected row and want to fetch all the row details. By using the below code i am able to fetch the details, here element is getting empty. how to get the object(element)?
$("#gvUserListing").on('click', 'tr', function () {
var rowIndex=$(this).index() + 1;
var idxUser=$(this).find('td').eq(0).text();
var userEmail=$(this).find('td').eq(1).text();
var userType=$(this).find('td').eq(2).text();
var userName=$(this).find('td').eq(3).text();
var userFullName = $(this).find('td').eq(4).text();
var element = $(this).find('td').parent();
alert(element.val());
setClickEventGrdView(element, rowIndex, idxUser, userType, userName, userEmail, userFullName)
});
setClickEventGrdView is used for row selection and to change background color