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);});
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);});
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)"
}