开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜