0

Is there an event or a method in jquery that check if the user has finished inputting the input box.

TheBAST
  • 2,680
  • 10
  • 40
  • 68
  • Possible duplicate of [How to delay the .keyup() handler until the user stops typing?](https://stackoverflow.com/questions/1909441/how-to-delay-the-keyup-handler-until-the-user-stops-typing) – Sergio Tulentsev Jun 11 '17 at 10:29
  • You are looking for [`blur()`](https://api.jquery.com/blur/) method. – Milan Chheda Jun 11 '17 at 10:36

2 Answers2

0

One possibility is when the user leaves the input field: https://api.jquery.com/focusout/

Antflow
  • 73
  • 7
0

Yes you can use focusout function that JQuery providing for you :

<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $("#text").focusout(function(){
        alert('finished')
    });
});
</script>
</head>
<body>
  input: <input type="text" id="text">
</body>
</html>
Daniel Taub
  • 5,133
  • 7
  • 42
  • 72