Text input change event : Form TextBox « jQuery « JavaScript DHTML
- JavaScript DHTML
- jQuery
- Form TextBox
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>
Related examples in the same category