I'm trying to get the value of a specific cell in a table in order to filter out unwanted rows. However, when I try to get the value of that cell it always reports null
or nothing at all. I've looked at several sources and done my code the same way with no luck. Here is my code:
$("td").each(function () {
var setName = $(this).find("#headerName").text();
alert(setName);
if (setName != weaverSet) {
$(this).hide();
}
weaverSet
is getting it's value passed from the drop down and working correctly. Here is the code for the part of the table I am trying to get:
<td id ="headerName">
@item.WeaverSetName
</td>
Any help is appreciated on this issue.