Javascript examples for jQuery:Text
JQuery Text Field Value Change event
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://code.jquery.com/jquery-1.6.4.js"></script> <script type="text/javascript"> $(window).load(function(){//from w w w . j a v a2 s .c o m jQuery(document).ready(function() { jQuery("#test").keyup(function(){ jQuery("#test2").text($(this).val()); }); }) }); </script> </head> <body> <input type="text" id="test"> <span id="test2"></span> </body> </html>