Prefill input value with the text that is clicked?

Is there a way to set the input value to the text that is clicked by the user to then trigger a search for the input’s value?

I dont think I can disable the input because i need it to search.

This topic was automatically closed after 70 days. New replies are no longer allowed.