Kind of:

$.get('page.htm', function(closet){
   $(closet).find('stuff').hide();
   //or
   $('stuff', closet).appendTo('#trash');
});

You're not creating any temporary DIV, just passing the HTML string to
jQuery which will parse it and turn it into actual elements.

On Jan 27, 6:25 pm, zunama <jjm....@gmail.com> wrote:
> What is the best way to work with HTML data returned on an AJAX call.
>
> Want to do something like this but I know it doesn't work. Do I need
> to stick the data into a temp div and then work with it?
>
> function (data)
> {
>     $(data).find(".....");
>
> }
>
> Thanks

Reply via email to