[jQuery] Re: Chaining $.append

2009-07-13 Thread dnagir
Ohh. Guys, thanks a lot for the help. It DOES work. Problem was: The #foo element on the sample page is in IFRAME so it is not available from main page. Sorry, I missed this. Cheers.

[jQuery] Re: Chaining $.append

2009-07-13 Thread dnagir
James, > You forgot a closing quote on: > onclick='return false; This does not work either for me: $("newly added").appendTo("#foo") Tried on the same page in Firebug. http://docs.jquery.com/Manipulation/appendTo Does it work for you? Am I doing something wrong? Cheers, Dmitriy.

[jQuery] Re: Chaining $.append

2009-07-13 Thread James
You forgot a closing quote on: onclick='return false; On Jul 13, 2:00 pm, dnagir wrote: > Hi Cody, > > > $("").text > > (data.Name).appendTo("#prods-list"); > > I tried this: > $(" link').appendTo("#foo") > > just on the jQuery doc page:http://docs.jquery.com/Manipulation/appendTo > > But it doe

[jQuery] Re: Chaining $.append

2009-07-13 Thread dnagir
Hi Cody, > $("").text > (data.Name).appendTo("#prods-list"); I tried this: $("http://docs.jquery.com/Manipulation/appendTo But it doesn't seem to work for me. Cheers, Dmitriy..

[jQuery] Re: Chaining $.append

2009-07-13 Thread Cody Lindley
Try.. $("").text (data.Name).appendTo("#prods-list"); cody On Mon, Jul 13, 2009 at 4:27 AM, dnagir wrote: > > Hi, > > I'm using the code to create DOM. But the append returns current > element and not the one it has created. So after I create some > elements via append (or similar) I have to q