javascript - jQuery Autocomplete with ajax, can i do a getall? -


i have bound jquery autocomplete little trouble. when type in 1 or 2 letters, ajax query gets me results , autocomplete shows items. wanting trigger option "show all" button. know can use code

myinput.autocomplete("search"); 

to trigger list when bound local datasource. when try on bound ajax populated source, doesn't trigger search empty string. wrote web api take optional query string below:

public ienumerable<account> getaccounts(string query = "") 

typing in letter works, remote triggering via button doesn't reason.

ideas?

have checked minlength option? must 0 empty string. check below link detail.

api.jqueryui.com/autocomplete/#option-minlength


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -