getting a slide of 'data' returned by $.ajax

Posted by Thau on Stack Overflow See other posts from Stack Overflow or by Thau
Published on 2010-06-11T21:44:37Z Indexed on 2010/06/11 21:52 UTC
Read the original article Hit count: 121

Filed under:
|
|

With $.ajax i'm getting a page dinamicly generated via PHP code, in the HTML returned I need only one object ('lwrapper' in my code).

How can I grabber 'lwrapper' from 'data' returned.

this is my code

 $.ajax({
          url: ref, //the url 
        cache: false,
      success: function(data){
              //code to get the slide of data
              //slide = $("lwrapper",data) //not working

              $('wrapper').html(slide);

            }
    });

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about html