Javascript Element to string
<p>I am creating div element like below and inserting some html content inside div and innerText.</p>

<pre><code>var creatediv=document.createElement("DIV");
var html="&lt;div align="left"&gt;&lt;a id="test" &gt;test&lt;/a&gt;&lt;/div&gt;";
creatediv.innerHTML=html;
creatediv.innerText="testing";
</code></pre>

<p>Now my question is how to retrieve the updated html variable here.</p>

<p>Thanks,</p>

<p>Raj</p>
