title: Unable to strip img tag from jQuery ajax response
body: <p>I have a web app that makes an ajax post to a PHP script, returning a bunch of html.  In the html there is an image and a table of data.  What I am trying to do is separate the image from the rest of the html so I can display it elsewhere.</p>
  
  <pre><code>$.ajax({      
    type: "POST",
    url: 'api/service_connector.php',
    data: { selectedmodel: requestdata },
    beforeSend: function() {},
    success: function(returneddata) {                             
    var $response=$(returneddata);
    var test = $response.filter('.testimage').html();      
    alert(test);  
    }                     
  });
  </code></pre>
  
  <p>If in my success function I just alert the entire returneddata variable, everything works fine.  So I know that the post itself is working and everything is returned properly; its just a matter of grabbing those image tags that I'm facing.  I have also tried a bunch of other "ways" that I've found on google.  For example, </p>
  
  <pre><code>alert($(returneddata).find('.testimage').html());
  </code></pre>