I want to add an ID to the search form(to the Form Tag)

Hi!
I want to add an ID to the search form. The form tag level.

I want to add a JS script to prevent the search form from searching with blank fields.

Any ideas?

1 Like

Hi did you figure it out?
I have a similar use case where I wish to restrict search form input field length on frontend

You can do that by using div. Then change the HTML semantic to what a search form needs accordingly.

1 Like