I have this code:

Does anyone know how to get the 'selected value' from the dropdown so I can print it out or store it in a variable???

I mean the dropdown for the 4th example (Sydney, Adelaide), I'd like to know if I can store the selected value into a variable, I really need that.