I Guess In to break this question up into smaller solutions?
https://www.experts-exchange.com/questions/27385721/JQUERY-SHOW-HIDE-TABLE-CONTENT-ROWS-COLUMNS.html
Checkbox selectors replace class active with hidden or remove class active on span tags.
Using JQuery, how can I hide a table row if it does not contain span tags with class active?
<tr id="row1">
<td class="student">John</td>
<td class="wk1"><span class="gradeblock grade-A xtra-hmk active">A*</span></td>
<td class="wk2"><span class="gradeblock grade-A not-xtra-hmk active">A</span></td>
<td class="wk3"><span class="gradeblock grade-A not-xtra-hmk active">A</span></td>
</tr>
<tr id="row2">
<td class="student">John</td>
<td class="wk1"><span class="gradeblock grade-A xtra-hmk">A*</span></td>
<td class="wk2"><span class="gradeblock grade-A not-xtra-hmk">A</span></td
>
<td class="wk3"><span class="gradeblock grade-A not-xtra-hmk">A</span></td
>
</tr>
In the above example, row 2 would be hidden.
ASKER
Thanks, that's great. My problem is trying to make this solution work:
https://www.experts-exchange.com/questions/27385721/JQUERY-SHOW-HIDE-TABLE-CONTENT-ROWS-COLUMNS.html
If you can help with that, that would be awesome. Is there a method which will work on if visible rather than .active? I think that might make things work using this in the other solution?