how to filter column in gridview using jquery

Posted by Klbaiju under jQuery on 7/7/2013 | Points: 10 | Views : 4425 | Status : [Member] | Replies : 1
Hi All,
in my application i want to check the column in gridview and also avoid first column in every row.
i tried this code
$("#GridView1 td").filter(":not(td:firstt)").each(function () {

var cellText = $(this).text();
if ($.trim(cellText) == '') {
$(this).css('background-color', 'LightGreen');
$(this).text('available');
}
else {
$(this).css('background-color', 'LightBlue');
}

});
this code works only for first cell.
my requirement is avoid first cell of every row.
how to solve this code

Regards
Baiju




Responses

Posted by: Ssj_Kumar on: 7/9/2013 [Member] Starter | Points: 25

Up
0
Down
If you are using jQuery then try the excellent jQuery DataTables plugin which works superbly, for reference please find the below link
http://www.datatables.net/


Regards,
Jayakumar Selvakani

Klbaiju, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response