title: replaceing innerHTML of div with some html code
body: <p>I have  a  div with id xyz.Now i have avariable which has some html code like follows</p>
  
  <pre><code>var mycode = "&lt;br&gt;jajaj&lt;b&gt;jjja&lt;/b&gt; ";
  </code></pre>
  
  <p>Now i want to replace content of div with this html code by using following</p>
  
  <pre><code>document.getElementbyid("xyz").innerHTML = mycode 
  </code></pre>
  
  <p>This doenot work.I am not getting why.mycode is dynamicallly created in my code.</p>
  
  <p>if i do simple <code>document.getElementById("xyz").innerHTML ="some text"</code>  this works</p>