what i try to do is the following.
Someone is sending a form via GET to my result page. When the result page is submitted, the URL looks like this for example
index.php?Reiseziel=Italy
Now, theres a select with the id #filtercountry and it contains all the countrys available to filter. When the GET value Reiseziel is set, i want to iterate trough the values of the select and make the right option selected.
For example, the select contains
<select name="Reiseziel" id="filtercountry">
<option value="Please choose..." />
<option value="Germany" />
<option value="Italy" />
<option value="Spain" />
The URL contains "index.php?Reiseziel=Italy" so i want to set the option value "italy" as selected. How would i achieve this?