By way of explanation, this works because the jQuery selector function has an optional context parameter: $(expression, [context]) . See the docs here: http://docs.jquery.com/Core/jQuery#expressioncontext.
-Kim On Mar 30, 11:18 pm, xPheRe <xpher...@gmail.com> wrote: > To locate a node with id "myId" that is a descendant of another one, > in a var called "myNode", use: > $('#myId', myNode) > Hope it helps :) > > On 30 mar, 17:20, tij_dev <tijmas...@googlemail.com> wrote: > > > > > Hi guys ! > > > I assume this is a really basic question but I'm a JQuery rookie :) so > > please be indulgent :) > > > I would like to get an element by its id but just on a specific node. > > I only see on the web things like that : $("#myId"). That is the > > equivalent of window.document.getElementById("myId"). But for me that > > should be something like myNode.getElementById("myId"). > > > Is that clear?... > > > Thanks in advance- Hide quoted text - > > - Show quoted text -