Posted by SaraLeePerson on 10/26/07 14:13
<form name=theform>
<textarea onkeydown="whynowork()" ID="inputbox" cols=25 rows=5></
textarea>
</form>
<div id=divtag></div>
<script>
function whynowork(){
document.getElementById("divtag").innerHTML =
document.forms['theform'].elements['inputbox'].value
}
</script>
Hello
Can someone please explain what I am doing wrong here? When you enter
something into the textarea, it skips the first character. How can I
rectify this problem? :-)
[Back to original message]
|