title: Parse complete html page with jquery
body: <p>I load a html with ajax. I want to load the result in a jquery object. I tried that but it returns null. How can I do this? I got a complete page including doctype, head elements and body elements.</p>
  
  <pre><code>var test = $(result); //result contains html code
  alert(test.html()); //returns null
  </code></pre>
  
  <p>I load the data with this function.</p>
  
  <pre><code>function ajaxLoadContent(element) {
      $.ajax({
          url: "url to the page",
          type: "GET",
          timeout: 5000,
          datattype: "html",
          success: function(result) {
          //handler
          },
      });
      return false;
  </code></pre>