Textarea and innerHTML
Posted: Fri Apr 01, 2005 2:29 am
Code: Select all
<script>
function copyText() {
document.getElementById('copyto').innerHTML = document.getElementById('testinput').innerHTML;
}
</script>
<textarea id="e;testinput"e; onKeyup="e;copyText()"e;></textarea>
<div id="e;copyto"e;></div>Code: Select all
<textarea id="e;testinput"e; onKeyup="e;copyText()"e;>Some text here</textarea>EDIT | OK - Using value as opposed to innerHTML works but innerHTML was actually quite handy here since it reads as entities. If anybody has a workaround it would be good - cheers