I have the following dynamically generated table on a page along with other tables on the page. I need to remove this table which does not have an id.There is one of two ways that I can think of to target the table for removal since these never change.
By the class="matching_results_text" or by the text "You are here"
Just do not know how to do it.
I tried $("table").remove(":contains('You are here:')"); but that didn't work right.
<table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td>
<b>You are here: <a href="http://www.test.com">Home</a> > <a href="http://www.test.com/Ignition-Controls-s/30.htm" title="Ignition Controls">Ignition Controls</a></b>
<div class="matching_results_text">We found 10 results matching your criteria.</div>
</td>
</tr>
</table>