Make a search menu disappear when the search field loses focus, but still allow user to click on links

不问归期 提交于 2019-12-05 11:16:25

You need to bind the click to body for hiding

$(document).click(function() {
      $("#instant_search_wrapper").hide();

});

See Working example at http://jsfiddle.net/WYbp3/4/

Can you be more specific, I don't understand the question. I checked your site and when I start typing something, a modal box style menu with the results is showed. Then if I blur the input the box still there.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!