[jQuery] a == b, but I don't understand why it doesn't...

[jQuery] a == b, but I don't understand why it doesn't...


Hi,
I have this html:
<ul id="phrases">
<li id="phrase_0" class="active">This is my first phrase</li>
<li id="phrase_1">This is my second_phrase</li>
</ul>
And I wanted to do this comparison:
if ( $("#phrases").find("li.active") != $("#phrases").find
("li:first") ) {
alert("the active list-item is not the first one");
}
The problem is the alert pops up, but in this case the first item is
clearly the active one. Can anybody figure out what's wrong?
Thanks!
Nacho