title: How to output a variable in Javascript to a textarea in HTML?
body: <p>I have got a variable in javascript called 'signature'</p>
  
  <pre><code>var signature;
  
  //(Data is here)
  
  document.write(signature) 
  </code></pre>
  
  <p>In HTML, I have the following: </p>
  
  <pre class="lang-js prettyprint-override"><code>&lt;div id="siggen"&gt;
  &lt;textarea id="content" cols="80" rows="10"&gt;&lt;/textarea&gt;
  </code></pre>
  
  <p>What i want is when i click generate button the variable signature appers in text area. Can anyone help?</p>