zig.com Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<head>
<script src="../../ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script>
  $(document).ready(function () {
    $("input").focus(function () {
      $(this).css("background-color", "yellow");
    });
    $("input").blur(function () {
      $(this).css("background-color", "green");
    });
  });
</script>
</head>
<body>
Name: <input type="text" name="fullname"><br>
Email: <input type="text" name="email">
</body>
<!-- /jquery/tryit.asp?filename=tryjquery_focus_blur  Thu, 06 Feb 2025 18:16:10 GMT -->
</html>