You can do this from the server side.
@if (item.ActiveYN) { <tr style="display: none;"> } else { <tr> }
I don't know the razor syntax, but you get the idea.
To do this on the client side, add a class.
@if (item.ActiveYN) { <tr class="hideMe"> } else { <tr> }
And then in jQuery:
$('.hideMe').hide();
Edited again after your question has been edited, now if we forget the server side at all:
$("mytable").find("tr:contains('No')").hide();
Use this operator in the button handler function. But, remember, he will also find any text that contains βNoβ anywhere in a row. To make it more accurate, use regular expressions to search for "No."
source share