Well, I have two textareas. When a user will type in one textarea, it will appear in the second textarea simultaneously. So my codes below:
<script>
function type () {
var text = document.getElementById('text').value;
var code = document.getElementById('code');
code.innerHTML = text;
}
</script>
<textarea cols="20" rows="20" id="text" onKeyUp="type();"></textarea>
<textarea cols="20" rows="20" id="code"></textarea>
And nothing is written to the second one... Help!