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
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Monica BundelPosted Mar 10, 2016, 4:35 AM
Rajeev PunhaniPosted Mar 10, 2016, 4:06 AM
Hi ,
In place of '.GridView ' use the css class of your table or provide id as '#tablename'
Monica BundelPosted Mar 10, 2016, 4:03 AM
Rajeev PunhaniPosted Mar 10, 2016, 2:21 AM
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.