<input>
$("input").focusin(function(){ $(this).css("background-color", "red"); }); $("input").focusout(function(){ $(this).css("background-color", "yellow"); });
This Pen is owned by W3TR on CodePen.
See more by @w3tr on CodePen
This Pen doesn't use any external CSS resources.