I am trying to copy the contents of a textbox into a div simultaneously while the user is typing. Here is THE CODE ON JSFIDDLE
The error that is am facing is, the length of the value copied inside the div is always one less than that of the textbox. what error am i making in the script?
I am trying to copy the contents of a textbox into a div simultaneously
Share
Use
keyupinstead.keypressoccurs when the key is pressed down and you want the text transferred when the key is released.