Get all divs in a particular div using JQuery
<p>I have this document structure</p>

<pre><code>&lt;div id="log"&gt;
&lt;div&gt;ABC&lt;/div&gt;
&lt;br/&gt;
&lt;div&gt;DEF&lt;/div&gt;
&lt;br/&gt;
...
&lt;/div&gt;
</code></pre>

<p>Where <code>...</code> represents any number of div, br pairs.</p>

<p>Now I need to write a JQuery function called exists that takes an id (in this case "log") and a string (for example "DEF") and checks if in the "log" div there is any div whose text matches "DEF".  My JQuery is weak, can someone help me with this?</p>
