[jQuery] jQuery Autocomplete - After service call if result is NULL then layer should be invisible
Hello,
I am using jQuery Autocomplete Plug-ins(http://bassistance.de/jquery-
plugins/jquery-plugin-autocomplete/).
Let me explain my problem:
If i am looking for "shirt" and star typing "shi" and it showing me 10
results for shirt, but now after "shi" if i type like "shixyzyz" it
should clear list and hide autocomplete layer.
In my case it is not doing that. Layer stay there with old results.
Pleaes note that i am making service call using JSONP and following is
my code.
$j(".autocomplete").autocomplete('URL/Service.svc/REST/SEARCH/', {
minChars: 3,
matchContains: true,
selectFirst: false,
cacheLength: 0,
width:307,
dataType: "jsonp",
any suggestion or hint on this.
Please help me.
Thanks in advance.