how to do show/hide only those tr if there last 2 td have same text.in this table i want to 3rd tr and 4th tr show hide. its have same value.
<table class="table table-zeroBorder sticky-table vrt_table" id="tabledata">
<thead >
<th > </th>
<th "> Alto STD </th>
<th > Alto LXI </th>
</thead>
<tbody >
<tr >
<td >Wheel Covers</td>
<td>
Center Cap
</td>
<td >
Full
</td>
</tr>
<tr >
<td >Body Coloured Bumpers</td>
<td >
-
</td>
<td >
yes
</td>
</tr>
<tr >
<td>Body Coloured Outside Door Handles </td>
<td >
yes
</td>
<td >
yes
</td>
</tr>
<tr>
<td >Body Side Molding</td>
<td >
-
</td>
<td >
-
</td>
</tr>
<tr >
<td >High-Mounted Stop Lamp</td>
<td >
yes
</td>
<td >
</td>
</tr>
</tbody>
</table>
My jquery code here.this jquery code hide all tr which have '-' value . in this table i want to 3rd tr and 4th tr show hide. its have same value.
$("#tabledata tbody tr td:contains('" + '-' + "')").filter(function () {
return $(this).text().trim() == '-';
}).parent().toggle();