Hi, > > It's as if when the id selector is passed then the $ method just uses a > > document.getElementById. > > Well IDs are supposed to be unique throughout the entire document (i.e. > there can be one and only one element in the entire document with an ID of > "myId"), so why shouldn't it simply use document.getElementById?
Well, you might whant to work with an element only if it is inside another one, which you already have: <div id="IamAllreadyKnown"><div id="42">asdf</div></div> $('#42',known) -> should find one Element <div id="IamAllreadyKnown"></div><div id="42">asdf</div> $('#42',known) -> should find no Elements Christof _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/