Appending user inputs in javascript
<p>I have the below script, to show me the number version of the keys that are pressed, but as you can see here in <a href="http://jsfiddle.net/KLV56/" rel="nofollow">jsfiddle</a> I have no idea, why it is not working in fiddle. But, the I am just trying to have earlier inputs saved, because everytime I pressed a key, the previous number gets deleted and a new numbers corresponding the key pops up. </p>

<pre><code>&lt;script type="text/javascript"&gt;
function displayunicode(e){
var unicode=e.keyCode? e.keyCode : e.charCode
document.getElementById("op").innerHTML = unicode;

}
&lt;/script&gt;
&lt;form&gt;
&lt;textarea onkeyup="displayunicode(event);" &gt;&lt;/textarea&gt;

&lt;div id="op"&gt;&lt;/div&gt;
&lt;/form&gt;
</code></pre>
