Class selector not working
<p>I'm doing z-index management by class .. so the active object gets the class topmost ..</p>

<pre><code>function topmost() {
    $(".topmost").removeClass("topmost");
    $("#thing").addClass("topmost");
}
</code></pre>

<p>This code doesn't seem to be working, and I can't fathom why ..</p>

<p>== EDIT ==</p>

<p>The problem is that <code>$(".topmost").removeClass("topmost");</code> is finding zero results when there are several on the page. I use this class selector often and have never had this issue. The class is being added by jQuery in the first place, but it should see it anyway. I look in my inspector and log the selection and it comes up with zero when I can see the at least 3 divs with the class. It is a function nested in an object, is that a problem? Can it scope out of the object and search the whole DOM?</p>
