I am creating div element like below and inserting some html content inside div and innerText.
var creatediv=document.createElement("DIV");
var html="<div align="left"><a id="test" >test</a></div>";
creatediv.innerHTML=html;
creatediv.innerText="testing";
Now my question is how to retrieve the updated html variable here.
Thanks,
Raj
"<div align="left"><a id="test" >test</a></div>"is not escaped properly.htmlvariable, so what do you mean by "updated"? And you do realize you are actually creating adivinside of adiv, right?