• Resolved michaelpdi

    (@michaelpdi)


    Is there a way to trigger the auto search box with a js code? Because I’m having elements with text, when they get clicked, the innerHTML gets added to the search field, but I have no idea how to trigger to open the autosearch results.

    Best regards
    Michael

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author wpdreams

    (@wpdreams)

    Hi,

    Sure! The easiest way to trigger is by using the ASL.api, like this:

    ASL.api(1, 'searchFor', 'phrase')

    This will trigger the search after adding ‘phrase’ to the search input.

    All the best,
    Ernest

    Thread Starter michaelpdi

    (@michaelpdi)

    @wpdreams Thank you so much, it worked.
    I wanted to say that I tested all of the search plugins available and yours was the best of all.

    Best regards
    Michael

    Plugin Author wpdreams

    (@wpdreams)

    Great ?? Thank you very much for your kind words!

    Feel free to rate the plugin if you like it, it helps us greatly.

    All the best,
    Ernest

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Trigger search with javascript’ is closed to new replies.