开发者

Autocomplete always stays on, how to make disappear with mouse click

开发者 https://www.devze.com 2023-01-13 03:37 出处:网络
I am having issues with jquery-autocomplete if i start typing then the results / suggestions would show.. but i want to be able to have then disappear when someone clicks somew开发者_如何学编程here e

I am having issues with jquery-autocomplete

if i start typing then the results / suggestions would show.. but i want to be able to have then disappear when someone clicks somew开发者_如何学编程here else on the page, and if possible when the user hits escape.

thanks in advance.

i would like it to work like the tags textbox when submitting this question.

:D


It depends on particular plugin you're using, but two most popular autocomplete pluging for jquery have that functionality by default. Check yourself.

http://jquery.bassistance.de/autocomplete/demo/
http://jqueryui.com/demos/autocomplete

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号