Jquery to loop in row and get column value in array
how to check all rows particular column values are equal of html table and if equal perform one action if not perform another action
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Rajeev PunhaniRank #551 · 4.4K reputationPosted Mar 9, 2016, 9:21 PM EST
Hi Bundel,
var myTr = [];
$('.GridView tr').each(function () {
$(this).find('td').each(function () {
myTr.push($(this).text());
});
alert(myTr);
});
});
If the above solution is helpful then,accept the answer.
Monica Bundel100 reputationPosted Mar 9, 2016, 11:03 PM EST
Rajeev PunhaniRank #551 · 4.4K reputationPosted Mar 9, 2016, 11:06 PM EST
Hi ,
In place of '.GridView ' use the css class of your table or provide id as '#tablename'
Monica Bundel100 reputationPosted Mar 9, 2016, 11:35 PM EST