<!DOCTYPE html>
<html lang="en-US">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> </head>
<body>
<h1>jQuery blur() Method</h1>
<p>Focus the input and type something and click outside the input to blur.</p>
<input type="text">
<script>
$(document).ready(function(){
$("input").blur(function(){
alert("Input is blurred");
});
});
</script> </body>
</html>