Is there a way to get the value from one text box and add it to another using jQuery dynamically when user is typing the value to the text box? can someone please explain the method if there is any such thing?
regrds,
Rangana
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.
You mean something like http://jsfiddle.net/ZLr9N/?
Its really simple, actually. First we attach a
keyupevent handler on the firstinput. This means that whenever somebody types something into the firstinput, the function inside thekeyup()function is called. Then we copy over the value of the firstinputinto the secondinput, with theval()function. That’s it!