On Dec 8, 2008, at 2:45 AM, janis.zalitis wrote:
Hey!
I have a problem with find:
It only appears to find "descendant" elements of a collection or
element.
I've been using JQuery for 3 years and unless memory fails me, find
used to find stuff on the same level as well.
I posted it as bug report here
http://dev.jquery.com/ticket/3694
And looking at the find example over at http://visualjquery.com/ it
seems that it should select elements on the same level since the
example basically selects spans using find and then selects those that
have "t" letter in them, again, using find.
jQuery hasn't existed for 3 years. ( http://docs.jquery.com/History_of_jQuery
)
It's definitely not a bug. The .find() method has never selected
elements on the same level. The .filter() method is used for that.
If you'd like to test this, the earliest version of jQuery I have is
from May 2, 2006:
http://test.learningjquery.com/scripts/jquery20060502.js
Too bad it's compressed. It would be fun to poke around in it and see
just how much has changed since then. :)
--Karl
____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com