Javascript examples for jQuery:Form Text Input
Using Jquery to Change text on input field based on another text input field
<html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("#change").change(function(){ $('#query').val($('#change').val() +" VVV") ; });// www .j a v a2 s . c o m }); </script> </head> <body> <input type="text" id="change" value="Test"> <input type="text" id="query" value="Test AAA"> </body> </html>