Is it possible to clone the value from
<textarea id="text"></textarea>
and
<input id="name" type="input" />
as pure text into a div or paragraph tag immediately?
Example: if “123” is typed in it will clone “123” into the div with no delay.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, use the keydown event and a short 10 ms delay (or possibly less, anything less than 30 is not noticeable by the user).
Demo: http://jsfiddle.net/7Qrug/
Edit: If you don’t like or understand
$.proxy, it could also be written as: