On May 20, 9:40 am, Yansky <[EMAIL PROTECTED]> wrote: > How exactly does $(response).find('#mylinks') work? How does it traverse the > dom tree if the response is just a text version of the page's html?
If response is HTML, then $(response) creates a DOM. That's what $ (string) does with HTML (instead of a CSS selector). E.g., $('<p>A new paragraph!</p>') generates a brand new paragraph element. Reference: http://docs.jquery.com/Core/jQuery#html jQuery( html ) "Create DOM elements on-the-fly from the provided String of raw HTML." Cheers, Pyro