I\'m trying to show up a container if a input field gets the focus and - that\'s the actual problem - hide the container if focus is lost. Is there an opposite event for jQu
Use blur event to call your function when element loses focus :
$('#filter').blur(function() { $('#options').hide(); });