How to make a search function with dropdown?
up vote
1
down vote
favorite
I have a website with a lot of products I've made in Wordpress. To make it easy for my visitors, I would like to make a search function with dropdowns.
My idea is, that my visitors have to select some categories in some dropdowns, and eventually press a search button to then display products that matching, what the visitors had chosen.
These types of dropdowns I think are like thise: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_elem_select
javascript html wordpress filter webshop
New contributor
Oscar S. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
1
down vote
favorite
I have a website with a lot of products I've made in Wordpress. To make it easy for my visitors, I would like to make a search function with dropdowns.
My idea is, that my visitors have to select some categories in some dropdowns, and eventually press a search button to then display products that matching, what the visitors had chosen.
These types of dropdowns I think are like thise: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_elem_select
javascript html wordpress filter webshop
New contributor
Oscar S. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Welcome to Stack Overflow! Please visit the help center, take the tour to see what and How to Ask. Do some research, search for related topics on SO; if you get stuck, post a Minimal, Complete, and Verifiable example of your attempt, noting input and expected output.
– mplungjan
Nov 19 at 13:28
Minimum effort
– mplungjan
Nov 19 at 13:29
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have a website with a lot of products I've made in Wordpress. To make it easy for my visitors, I would like to make a search function with dropdowns.
My idea is, that my visitors have to select some categories in some dropdowns, and eventually press a search button to then display products that matching, what the visitors had chosen.
These types of dropdowns I think are like thise: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_elem_select
javascript html wordpress filter webshop
New contributor
Oscar S. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I have a website with a lot of products I've made in Wordpress. To make it easy for my visitors, I would like to make a search function with dropdowns.
My idea is, that my visitors have to select some categories in some dropdowns, and eventually press a search button to then display products that matching, what the visitors had chosen.
These types of dropdowns I think are like thise: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_elem_select
javascript html wordpress filter webshop
javascript html wordpress filter webshop
New contributor
Oscar S. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Oscar S. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Oscar S. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked Nov 19 at 13:26
Oscar S.
61
61
New contributor
Oscar S. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Oscar S. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Oscar S. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Welcome to Stack Overflow! Please visit the help center, take the tour to see what and How to Ask. Do some research, search for related topics on SO; if you get stuck, post a Minimal, Complete, and Verifiable example of your attempt, noting input and expected output.
– mplungjan
Nov 19 at 13:28
Minimum effort
– mplungjan
Nov 19 at 13:29
add a comment |
Welcome to Stack Overflow! Please visit the help center, take the tour to see what and How to Ask. Do some research, search for related topics on SO; if you get stuck, post a Minimal, Complete, and Verifiable example of your attempt, noting input and expected output.
– mplungjan
Nov 19 at 13:28
Minimum effort
– mplungjan
Nov 19 at 13:29
Welcome to Stack Overflow! Please visit the help center, take the tour to see what and How to Ask. Do some research, search for related topics on SO; if you get stuck, post a Minimal, Complete, and Verifiable example of your attempt, noting input and expected output.
– mplungjan
Nov 19 at 13:28
Welcome to Stack Overflow! Please visit the help center, take the tour to see what and How to Ask. Do some research, search for related topics on SO; if you get stuck, post a Minimal, Complete, and Verifiable example of your attempt, noting input and expected output.
– mplungjan
Nov 19 at 13:28
Minimum effort
– mplungjan
Nov 19 at 13:29
Minimum effort
– mplungjan
Nov 19 at 13:29
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
For that you need to create a custom dropdown and not select list. ALternatively you can use datalist
<form action="/action_page.php" method="get">
<input list="browsers" name="browser">
<datalist id="browsers">
<option value="Internet Explorer">
<option value="Firefox">
<option value="Chrome">
<option value="Opera">
<option value="Safari">
</datalist>
</form>
Thanks for quick answer! So, now I know how to make the dropdowns, and I also know how to set it up, so it looks nice. I also know how to set it up, so it looks nice, but how can I transfer my visitors to the right place on my website?
– Oscar S.
Nov 19 at 13:45
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
For that you need to create a custom dropdown and not select list. ALternatively you can use datalist
<form action="/action_page.php" method="get">
<input list="browsers" name="browser">
<datalist id="browsers">
<option value="Internet Explorer">
<option value="Firefox">
<option value="Chrome">
<option value="Opera">
<option value="Safari">
</datalist>
</form>
Thanks for quick answer! So, now I know how to make the dropdowns, and I also know how to set it up, so it looks nice. I also know how to set it up, so it looks nice, but how can I transfer my visitors to the right place on my website?
– Oscar S.
Nov 19 at 13:45
add a comment |
up vote
0
down vote
For that you need to create a custom dropdown and not select list. ALternatively you can use datalist
<form action="/action_page.php" method="get">
<input list="browsers" name="browser">
<datalist id="browsers">
<option value="Internet Explorer">
<option value="Firefox">
<option value="Chrome">
<option value="Opera">
<option value="Safari">
</datalist>
</form>
Thanks for quick answer! So, now I know how to make the dropdowns, and I also know how to set it up, so it looks nice. I also know how to set it up, so it looks nice, but how can I transfer my visitors to the right place on my website?
– Oscar S.
Nov 19 at 13:45
add a comment |
up vote
0
down vote
up vote
0
down vote
For that you need to create a custom dropdown and not select list. ALternatively you can use datalist
<form action="/action_page.php" method="get">
<input list="browsers" name="browser">
<datalist id="browsers">
<option value="Internet Explorer">
<option value="Firefox">
<option value="Chrome">
<option value="Opera">
<option value="Safari">
</datalist>
</form>For that you need to create a custom dropdown and not select list. ALternatively you can use datalist
<form action="/action_page.php" method="get">
<input list="browsers" name="browser">
<datalist id="browsers">
<option value="Internet Explorer">
<option value="Firefox">
<option value="Chrome">
<option value="Opera">
<option value="Safari">
</datalist>
</form><form action="/action_page.php" method="get">
<input list="browsers" name="browser">
<datalist id="browsers">
<option value="Internet Explorer">
<option value="Firefox">
<option value="Chrome">
<option value="Opera">
<option value="Safari">
</datalist>
</form><form action="/action_page.php" method="get">
<input list="browsers" name="browser">
<datalist id="browsers">
<option value="Internet Explorer">
<option value="Firefox">
<option value="Chrome">
<option value="Opera">
<option value="Safari">
</datalist>
</form>answered Nov 19 at 13:38
brk
24.6k31939
24.6k31939
Thanks for quick answer! So, now I know how to make the dropdowns, and I also know how to set it up, so it looks nice. I also know how to set it up, so it looks nice, but how can I transfer my visitors to the right place on my website?
– Oscar S.
Nov 19 at 13:45
add a comment |
Thanks for quick answer! So, now I know how to make the dropdowns, and I also know how to set it up, so it looks nice. I also know how to set it up, so it looks nice, but how can I transfer my visitors to the right place on my website?
– Oscar S.
Nov 19 at 13:45
Thanks for quick answer! So, now I know how to make the dropdowns, and I also know how to set it up, so it looks nice. I also know how to set it up, so it looks nice, but how can I transfer my visitors to the right place on my website?
– Oscar S.
Nov 19 at 13:45
Thanks for quick answer! So, now I know how to make the dropdowns, and I also know how to set it up, so it looks nice. I also know how to set it up, so it looks nice, but how can I transfer my visitors to the right place on my website?
– Oscar S.
Nov 19 at 13:45
add a comment |
Oscar S. is a new contributor. Be nice, and check out our Code of Conduct.
Oscar S. is a new contributor. Be nice, and check out our Code of Conduct.
Oscar S. is a new contributor. Be nice, and check out our Code of Conduct.
Oscar S. is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53375654%2fhow-to-make-a-search-function-with-dropdown%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Welcome to Stack Overflow! Please visit the help center, take the tour to see what and How to Ask. Do some research, search for related topics on SO; if you get stuck, post a Minimal, Complete, and Verifiable example of your attempt, noting input and expected output.
– mplungjan
Nov 19 at 13:28
Minimum effort
– mplungjan
Nov 19 at 13:29