I have a page with an input field. I want to run javascript code on blur. Like this,
$('#inputfield').on('blur', function() { ... });
It works great on a desktop browser if I remove or click the mouse outside the field. In Safari for iPad, it works fine if I go outside the input field.
But if I click on the "Hide Keyboard" button in the lower left corner, the blur event will not be triggered. Doesn’t blaze fire events on the keyboard? I see that the cursor / cursor moves away from the input field on hiding the keyboard. Is there any way to capture an event hide a keyboard?
Thanks.
source share