I work with datatable and i need to hide all rows in which i have class .fa-active
<em class="fa fa-active" data-title="Active"></em>
i try to use such code:
$('tr').each(function () {
$(this).find('.fa-active').remove();
});
But this code only hide icon inside row, how i can completly hide row with such element?
<table class="custom-style" id="systemRfidCardsSearchTable">
<thead class="table-head">
<tr>
<th class="checkbox-mark sorting_disabled">
<input type="checkbox" class="custom-checkbox" id="checkAll" />
</th>
<th class="sorting_disabled"></th>
<th>@Localizer["Card name"]</th>
<th>@Localizer["RFID code"]</th>
<th class="sorting_disabled"></th>
</tr>
</thead>
<tbody class="table-body">
@foreach (var card in Model.SystemRfidCards)
{
<tr>
<td>
<input type="checkbox" class="custom-checkbox checkbox-mark" id="checkbox_@card.RfidCardId" />
</td>
<td>
@if (card.IsActive)
{
<em class="fa fa-check pointer fa-active" data-title="@SharedLocalizer["Active"]"></em>
}
else
{
<em class="fa fa-close pointer fa-inactive" data-title="@SharedLocalizer["Inactive"]"></em>
}
</td>
<td>@card.RfidCardName</td>
<td>@card.RfidCardCode</td>
</tr>
}
</tbody>
</table>