[SOLVED] V2 Autocomplete Standalone, how to simulate user input for submit a search and to show new results

Hi, I would like to simulate programmatically the user’s input to start a search (the function for extract the source data) to show new results to the user.

I have tried with:
$( inputEl ).focus() ;
$$( inputEl ).trigger( ‘focus’ ) ;
$$( inputEl ).trigger( ‘input’);
$$( inputEl ).trigger( ‘change’);

but nothing works.

Is there any way to do it?

Thanks,
Valentina

//app.searchbar.search(el,query);
app.searchbar.search('.searchbar','value');
2 Likes

Thanks :slight_smile: the solution works fine.

Valentina