<!DOCTYPE html>
<html>
<head>
<title>jQuery change() method</title>
<script src="jquery-latest.min.js"></script>
<script>
$(document).ready(function(){
$("input").change(function(){
$(this).css("background-color", "#81fb81");
});
});
</script>
</head>
<body>
<p>Attached function will execute when an element value has been change.
<div>
Name: <input type="text" name="name" /><br />
E-Mail: <input type="text" name="email" />
</div>
</body>
</html>