There is no obvious way to do this according to the document. But you can try with the focus
event (either click
or keyup
) in the autocomplete
enabled textbox
:
$('#autocomplete').trigger("keyup");
or
$('#autocomplete').trigger("focus");
or
$('#autocomplete').trigger("click");
The code is specified as @Tats_innit , after which you just need to add the line
$('#tags').trigger("focus");
Demo
source share