title: jQuery get page which hast parent in wordpress
body: <p>The following code works perfectly fine for "normal" wordpress pages without a parent page, BUT if the requested page has a parent I get nothing and I can't get the code to work (alert box never came) after 5h of web-searching and trial and error.</p>
  
  <p>JS/jQuery here:</p>
  
  <pre><code>&lt;script&gt;
  jQuery(document).ready(function () {
  //get the page via page slug
    jQuery.get("thePageSlug").success(function(data){
      //get the content div of the found page
      jQuery(data).find("#content").appendTo("#content");
      alert("finally.....");
    });
  });
  &lt;/script&gt;
  </code></pre>