Dropdown list selected value

Hello! I have a question…
How do I get the selected value from a dropdown list and open a new html file?
I have a list lije this:

<select name="latticini" id="latticini">
   <option value="tutti">Tutti i prodotti</option>
   <option value="formaggi">Formaggi</option>
   <option value="mozzarelle">Mozzarelle</option>
   <option value="stracchino">Stracchino</option>
   <option value="stracchino">Ricotta</option>
   <option value="stracchino">Latte</option>
</select>

For example, if the user choose an option, I can perform an action, such as opening a new HTML page.
Thanks very much for the help,
Best regards,
Robertino, Italy

You can put the select box inside a form, and when the user submits the form you can open a new page.

Or you can use Javascript.

1 Like