Code
<script src="./jquery-3.2.1.js"> </script>
<script>
$(document).ready(function(){
$("input").focus(function(){
$(this).css("background-color", "#cccccc");
});
$("input").blur(function(){
$(this).css("background-color", "#ffffff");
});
});
</script>
Name: <input type="text" name="fullname">
Email: <input type="text" name="email">