title: How to get the html of a div from a different page with AJAX?
body: <p>How can I get the html of a certain html element which is located on a different site?</p>
  
  <p>Solution:</p>
  
  <pre><code>$.ajax({
  url: 'somefile.html',
  success: function(data) {
      data=$(data).find('div#id');
      $('#mydiv').html(data);
      alert('Done.');
   }
  });
  </code></pre>