Here is the fiddle
I have two dropdown items in my HTML.
where from and where to
You have to chose where from before the where to is filled with options.
The array containing the different places looks like this:
var allCities = ["Napoli", "Palermo", "Cagliari", "Barcelona", "Malaga", "Rio de Janeiro"];
After where from is chosen, I want to update the values in where to with the items in the array that has an index higher than the one that was first chosen.
E.g. If I choose Cagliari as my where from.
My where to should display Barcelona, Malaga, Rio de Janeiro, but my where to dropdown never gets any values.
Any help is much appreciated.