jQuery lose focus event
Like this:
$(selector).focusout(function () {
//Your Code
});
Use blur event to call your function when element loses focus :
$('#filter').blur(function() {
$('#options').hide();
});
Like this:
$(selector).focusout(function () {
//Your Code
});
Use blur event to call your function when element loses focus :
$('#filter').blur(function() {
$('#options').hide();
});