title: how to change innerHTML of textarea after typing in it?
body: <p>The following code works <b>only</b> if I don't first type in the textarea box. If i type in it, clicking on the div does nothing. Is there any way to fix this in javascript or whatever? Any help is appreciated.</p>
  
  <pre><code>&lt;textarea id = "textarea"&gt;change this&lt;/textarea&gt;
  &lt;div onclick = "change()"&gt;click here&lt;div&gt;
  
  &lt;script&gt;
  function change()
      {
          document.getElementById( 'textarea' ).innerHTML = 'new text';
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>here is the jsfiddle <a href="http://jsfiddle.net/69n24agz/" rel="nofollow">http://jsfiddle.net/69n24agz/</a></p>