<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script src="Jquery1.7.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$('#Text1').bind({ 'focus': function () { alert('獲取焦點'); }, 'blur': function () { alert('失去焦點'); }, 'keyup': function () { alert($(this).val()) } })
})
</script>
</head>
<body>
<input id="Text1" type="text" />
<br />
<input id="Text2" type="text" />
</body>
</html>