title: How to get the specific div content from responseText which have complate Html page
body: <p>I am getting the whole html page in responseText, i just want to parse/
  filter the responseText to
  get a specific div say test and underlying contents. I would not
  like to modify the server side code to send just required div in
  <code>responseText</code>.</p>
  
  <pre><code>url: "Someurl",
  datatype: "text/html",
  success : function(responseText) 
  {
      alert(responseText);
  dat = $(data).filter("#test").html();
  alert(dat);//getting null
  $('#test').html(dat);
  
  }
  </code></pre>
  
  <p><code>responseText</code> contains</p>
  
  <p>100's of HTML lines....
  ....
       ....many more div tags and other
      tags 
  ....
  100's of HTML lines</p>
  
  <p>I'm using jquery and i tried</p>
  
  <pre><code>$(responseText).filter("#test").html();
  </code></pre>
  
  <p>and used find too</p>