Answer the question
In order to leave comments, you need to log in
How to make a search on the site through several selects?
The site has a search form that consists of two selects and a "Search" button.
When a button is clicked, Javascript generates a link, depending on which value was selected, and the user is redirected to the corresponding page.
simple example:
<select name="location">
<option value="los-angeles">Los Angeles</option>
<option value="new-york">New York</option>
</select>
<select name="type">
<option value="newspaper">Newspaper</option>
<option value="magazine">Magazine</option>
</select>
Answer the question
In order to leave comments, you need to log in
All possible combinations should be pre-generated and placed on the page in the form of links hidden by styles, showing the desired one when choosing something.
Make everything links - after loading the page, style it with js.
Leave it as it is - make quick categories links. For PC themes: office, gaming, ....
Good afternoon! Found a solution? I’m also interested in this question on Wordpress, but I’m not strong in programming languages, drag and dropom can collect the maximum logic through the admin panel)) maybe there is a plugin, I found Calculated Fields Form but I can’t catch up yet how to implement it there.
You need to create a search:
1 form = car brand
2 form = car model
3 selection button = go to the page
selection separately is not possible, also prohibiting the display of the list from form 2 until you select something in form 1
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question