开发者

Anybody knows how to make the JSon suggest close on click?

i'm using this json suggest box

and i was wondering if there's a way to include an option to make it close when the user click on somewhere else?

else right now unless the user select something, the suggest box will never close.

Or is there another suggest box out there that i can use? basically my data are in json format.

sorry if this question sounds lazy, but i think if there's other json suggest users, they might appreciate this too.

Updates:

One of my senior developer came up with this: :)

$(document).click(function() {
        $(".jsonSuggestResults").hide();
   开发者_Go百科 });


don't know your primary problem because it's working on the link givin but if you are looking for something similar, try jqueryui autocomplete

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜