Javascript .indexOf says 2 equal elements are not equal
<pre><code>$.makeArray($('ul#NavAContent li')).indexOf($('ul#NavAContent li#A1'))
</code></pre>

<p>The li element with id A1 is in the ul#NavAContent, but the indexOf function returns <strong>-1</strong>, what am i doing wrong?</p>
