:) I dont get how I can save the selected selectmenu-option into a variable? Here is my Selectmenu:
<script>
    $(function() {
        $("#map").selectmenu();
    });
</script>
<form action="#">
    <fieldset>
        <select name="map" id="map">
            <option value="London">London</option>
            <option value="Berlin">Berlin</option>
            <option value="Nevada">Nevada</option>
        </select>
    </fieldset>
</form>
I know that I need an Event. This Event would be select I guess. The jQueryui API Documentation (http://api.jqueryui.com/selectmenu/#event-select) gives the following Code example:
$( ".selector" ).selectmenu({
  select: function( event, ui ) {}
});
But ... what is the .selector in my case? #map?
So it would be
$( "#map" ).selectmenu({
  select: function( event, ui ) {}
});
I guess? But where to insert my "action"? The var map = X;? And how does my code know which of the maps is selected?
Thank you in advance :)
 
    