get html from a variable by id
<p>i have a variable name value in my javascript code that contain html data.i want to get the data inside form specific id  that is inside #myDiv</p>

<pre><code>  var value="&lt;div &gt;
             &lt;p class=""&gt;Hi cname@gmail.com&lt;/p&gt;
             &lt;br/&gt;
            &lt;br/&gt;
            &lt;br/&gt;
            &lt;div id="myDiv"&gt;
              sgdhsagdhagh
              dhsajdgasj
              cjzjcg
              &lt;/div&gt;

            &lt;/div&gt;"
</code></pre>

<p>Thanks</p>