title: get self HTML code with jQuery
body: <pre><code>&lt;div&gt;
    &lt;a href="#" class="selected"&gt;link1&lt;/a&gt;  
    &lt;a href="#"&gt;link1&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and using following</p>
  
  <p><code>$('.selected').html()</code> I get </p>
  
  <p><code>link1</code></p>
  
  <p>as a return value.</p>
  
  <p>How can I get full html code of the selected DOM element, in this example to get</p>
  
  <p><code>&lt;a href="#" class="selected"&gt;link1&lt;/a&gt;</code> </p>
  
  <p>instead?</p>
  
  <p>thanks</p>