Removing tr if td contains a text not working only in IE
<pre><code>var searchString = 'teststring';
$("td").each(function() {
    if ($(this).text() == searchString) {
        $(this).parent().remove();
    }
});
</code></pre>

<p>Here is the HTML: </p>

<pre><code>&lt;table&gt;
    &lt;tr&gt;
        &lt;td align="center" width="15%"&gt;teststring&lt;/td&gt;
        &lt;td align="center" width="15%"&gt;B&lt;/td&gt;
        &lt;td align="center" width="15%"&gt;C&lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;
</code></pre>

<p>The above script I am using it to remove the <code>tr</code> if any td have the match text. For some reason it is not working in <em>IE</em> (all version) and working fine in all other browsers.</p>

<p>Anyone know the reason for it ?</p>