title: Write inside text area with Javascript
body: <p>I am trying to write something in text area when I click on a link. </p>
  
  <pre><code>function writeText(txt){
      document.getElementById("writeArea").innerHTML = txt;
  }
  </code></pre>
  
  <p>I would like to pass html tag in place of txt as parameter to this function so that I can get image, link etc inside text area. Is it possible in Javascript? || JQuery will be good?
  Pre-thanks.</p>