You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I solved using this method:
onSelect: function(e,term){
document.getElementById("form_id").submit();
}
This will grab the suggested term from your autocomplete and trigger the form submit to start the search with a click
This isn't provided as an example and didn't appear in any past issues, so I wanted to note this for anyone who may search for this in the future.
If you want to trigger the form to submit on click, use the following:
Adjust
.search-autocomplete
to whatever the class is you are using on your text field. This also accomodate multiple search fields/forms on a page.Probably would be a solid example to include in the documentation :)
The text was updated successfully, but these errors were encountered: