title: Load content into parent element with jquery
body: <p>I have a div element with a specific ID</p>
  
  <pre><code>&lt;div id='someid'&gt;
      &lt;input type='submit' class='edit' value='Edit'&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>When the button is pressed, I want to select the parent element (in this case the div element) and load content into it. I've tried:</p>
  
  <pre><code>$(document).ready(function(){
    $(".edit").click(function(){
      var id = $(this).parent().get(0).id;
      $(id).load("contentpage");
    });
  });
  </code></pre>
  
  <p>But this doesn't work, presumably because I am not selecting the parent in the right way? If I print out the id variable, it does have the right value ('someid'), but I guess $(id) is where I am wrong?</p>