Search within HTML code?
<p>How do I search within HTML code with JQuery? I want to find a string in the HTML code and then hide the div. This does not work:</p>

<pre><code>&lt;div class="example"&gt;
test
&lt;img src="example.jpg"&gt;&lt;/div&gt;
</code></pre>



<pre><code>$(document).ready(function(){
    $(".example:contains('example.jpg')").hide();
});
</code></pre>

<p>But when I tell it to search for 'test' instead of 'example.jpg', it does work?</p>
