title: jQuery to get the HTML code on right click
body: <p>I am using jQuery and I need to get the HTML code of any element on which the user right clicks. The jsfiddle has the sample. I don't have IDs in the HTML code</p>
  <pre><a href="http://jsfiddle.net/Madhan/zE5Ub/7/" rel="nofollow noreferrer">JSFiddle is here</a></pre>
  <pre><code>&lt;div id=&quot;container&quot;&gt;
    &lt;p&gt;Click Area 1&lt;/p&gt;
    &lt;p&gt;Click Area 2&lt;/p&gt;
    &lt;div&gt;
       Click area 3&lt;br/&gt;
       &lt;a href=&quot;#&quot;&gt;Click Area 4&lt;/a&gt;&lt;br/&gt;
       &lt;a href=&quot;#&quot;&gt;Click Area 5&lt;/a&gt;&lt;br/&gt;
    &lt;/div&gt;&lt;br/&gt;
     &lt;div id=&quot;codewidget&quot; &gt;&lt;/div&gt;&lt;br/&gt;
  &lt;/div&gt;
  </code></pre>
  <p>How can I go about getting the HTML content and print it on the codewidget? I tried but I am kind of new to this.</p>