<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
  $("div").focus(function(){
   $(this).css("background-color","blue");
    });
  $("div").blur(function(){
   $(this).css("background-color","black");
});
});
</script>
</head>

<body>
<div 
style="background-color:black;height:100px;width:100px;">
</div>
</body>
</html>
diafol commented: Ask the question -3

Do you have a question?