<!DOCTYPE html>
<html>
<head>
<title>jQuery mouseout() and mouseover() method</title>
<script src="jquery-latest.min.js"></script>
<script>
$(document).ready(function(){
$("div").mouseover(function(){
$("input").css("background-color", "yellow");
});
$("div").mouseout(function(){
$("input").css("background-color", "pink");
});
});
</script>
</head>
<body>
<div style="padding: 10px; border: 1px solid #000;">
Name: <input type="text" name="name" />
</div>
</body>
</html>