Mega Code Archive

 
Categories / JavaScript Tutorial / JQuery
 

Text input change event

< html>   <head>     <script type="text/javascript" src="js/jquery-1.3.2.js"></script>     <script type="text/javascript">         $(document).ready(function(){                 $("input").change( function() {                   alert( $(this).val());                 });         });     </script>   </head>   <body>     <body>        <p><input type="text" /> <span>blur fire</span></p>        <p><input type="password" /> <span>blur fire</span></p>     </body> </html>