autocomplete - How to use more than one jQuery AutoSuggest on a single page? -


i can use autosuggest jquery plugin on page... how create more 1 of them on single page? don't understand syntax on this site example:

$(function(){     $("div.someclass input").autosuggest(data);     $("#someid input").autosuggest(other_data); }); 

what mean?

it hard say, beacuse not clear not understand. anyway, select inputs via css-like selector

$('css selector here') 

and call method autosuggest on it, like

$('css selector here').autosuggest(); 

if want more 1 field, repeat.

$('css selector here').autosuggest(); $('another css selector here').autosuggest(); 

you can pass object storing options parameter autosuggest.


Comments

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -