I’m wanting to have one text field autopopulate with whatever the other text field has being typed into it.
How do I go about this?
Thank you!
Hudson
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.
Short and simple:
or to bind it to several events in order to update it also if it loses focus:
Reference:
.keypress(),.val(),.blur(),.bind()Update:
Due to, for me, mysterious reasons, when the first character is typed in, it is not set in the other input field. Has anyone any idea? 😉
It works though by using
keyup(keydownalso produces the same strange result).