-2

I like to get true/false if I set the blur on element id

how to check on this code if onblur event set on id?

like

$(id).blur(function(){matching_action(id);});
Cleptus
  • 3,302
  • 4
  • 28
  • 33
legopart
  • 19
  • 3
  • 1
    https://stackoverflow.com/questions/2518421/jquery-find-events-handlers-registered-with-an-object – pawel Aug 14 '20 at 15:19
  • 2
    Does this answer your question? [jQuery find events handlers registered with an object](https://stackoverflow.com/questions/2518421/jquery-find-events-handlers-registered-with-an-object) – soMarios Aug 14 '20 at 15:22

1 Answers1

0

If I understand correctly, you wish to do something when the element enters blur state? Blur event fires when an element has lost focus so keep that in mind.

$(id).on("blur", function() {
  alert(id) // or in your case "matching_action(id)"
}