Element unselectable with jQuery
<p>I have a div in a page that I can't select with jQuery. I've tried selecting by ID and by class, with</p>

<pre><code>alert(jQuery(".warningmessage").size());
</code></pre>

<p>and</p>

<pre><code>alert($("#" + warningId).size());
</code></pre>

<p>but both return 0. The only thing I can think of that might have an effect is that the content containing the element was loaded with Ajax, or maybe there's a syntax error on the page, although I can inspect it with Firebug and see the element there.</p>

<p>The page is part of an app so you have to log in to see it but I can post a demo login username/password if necessary.</p>

<p>The HTML is</p>

<pre><code>&lt;div class="warningmessage" id="rdvg2pgrktrbdw8um_warning"&gt;&lt;/div&gt;
</code></pre>
