I have a dropdown on my website, where users can select different site-names. Next to the dropdown I have a submit button.
I would like users to select a site-name, from the dropdown, and when they click on submit they should be redirected to a specific url, with the dropdown value appended.
<form id="form" method="get">
<option value="1">Website Name 1</option>
<option value="2">Website Name 2</option>
<option value="3">Website Name 3</option>
<button class="btn" type="submit">GO!</button>
</form>
Example case:
- Users selects "Website Name 2"
- User clicks "GO!" button
- Site opens a new window with target "https://example.com/site/2"