<!DOCTYPE html>
<html>
<head>
<meta charset=" utf-8">
<meta name="author" content="http://www.plcxue.com/" />
<title>plc学堂 - www.plcxue.com</title>
<script type="text/
javascript" src="mytest/jQuery/jquery-1.8.3.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("input").change(function(){
$("input").css("backgroundColor","green")
})
})
</script>
</head>
<body>
<div><input type="text" name="content" /></div>
<div>改变
文本框文字就会触发事件</div>
</body>
</html>