title: How to get the html of a div on another page with jQuery ajax?
body: <p>I'm using jQuery's ajax code to load new pages, but wanted him to get only the html of a div.</p>
  
  <p>My codes:
  HTML:</p>
  
  <pre><code>&lt;body&gt;
      &lt;div id="content"&gt;&lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Script:</p>
  
  <pre><code>$.ajax({
     url:href,
     type:'GET',
     success: function(data){
         $('#content').html(data);
     }
  });
  </code></pre>
  
  <p>I wanted him to get only the html of $('div#content') on another page. How to do it?</p>