Get HTML code from $(this) in jQuery
<p>I am using the following code to get innerHTML of <code>$(this)</code>:</p>

<pre><code>var html=$(this).html();
</code></pre>

<p>So for example if $(this) refers to <code>&lt;div class="hello"&gt;Some &lt;strong&gt;HTML&lt;/strong&gt; here.&lt;/div&gt;</code>, <code>var html</code> will be <code>Some &lt;strong&gt;HTML&lt;/strong&gt; here.</code>.</p>

<p>Great, but what I want to get is the whole HTML for <code>$(this)</code>, including <code>&lt;div class="hello"&gt;</code> and <code>&lt;/div&gt;</code>.</p>

<p>How can I do that please?</p>
