I want to detecting when a user clicks OUT of an input type Text Field, not in.
Here’s what I have but both events are firing on click inside (focus):
<input id="title" val="hello" />
$("#title").focusout(function() {
console.log('inside');
}).blur(function() {
console.log('outside');
});
You can bind your
focusandblurevent like so:focusoutisn’t necessary since it’s geared toward event bubbling for child elements: http://api.jquery.com/focusout/