So I've set up two textareas with the intention of having whatever is typed in one appear simultaneously in the other. But despite my best efforts, it's not working as expected. Here's the code snippet:
<script>
function copyText () {
var inputText = document.getElementById('inputText').value;
var displayText = document.getElementById('displayText');
displayText.innerHTML = inputText;
}
</script>
<textarea cols="20" rows="20" id="inputText" onKeyUp="copyText();"></textarea>
<textarea cols="20" rows="20" id="displayText"></textarea>
I'm at a loss here - nothing seems to be transferring over to the second textarea. Any insights would be greatly appreciated!