... success : function(html){ $(html).find('#mydiv').appendTo('#content'); } ...
On Oct 20, 11:43 pm, brobro <[EMAIL PROTECTED]> wrote: > Hi, > if I use $.ajax() to fetch a file. Would it be possible to search throught > that file for a certain element and use that? > like > $.ajax({ > url: "getthis.html", > success: function(html){ > var mynewdiv = lookformydiv("#mydiv") in html > //this is what i > want to do > $("#content").append(#mynewdiv); > } > it would a great help > > -- > View this message in > context:http://www.nabble.com/search-through-ajax-object-tf4664208s27240.html... > Sent from the jQuery General Discussion mailing list archive at Nabble.com.