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.
Comments
Post a Comment