title: jQuery - get contents of selected element (not html of its contents)
body: <p>Say I have the following html:</p>
  
  <p><code>&lt;div id="myDiv" title="My Div"&gt;This is me!&lt;/div&gt;</code></p>
  
  <p>I want to write a jquery statement such that the result is the entire line above as a string.</p>
  
  <p>I almost want something like:
  <code>var selectedHtml = $("#myDiv").self();</code>  (I know that's not valid jquery) which results in <code>selectedHtml</code> having the value "<code>&lt;div id="myDiv" title="My Div"&gt;This is me!&lt;/div&gt;</code>"</p>
  
  <p>Any ideas about which jquery function I'm looking for?</p>
  
  <p>PS: getting the <code>.html()</code> of this node's <code>.parent()</code> will not work as it will give me siblings of the above node too.</p>