I'm using multiple select boxes on my website and use the id from each of these to select the :selected val and set it as a variable. You will see the 3 randomly chosen below and I'm stuck on adding the word val into the new way of setting multiple variables.
before
var maptypecontrolval = $('#maptypecontrol>option:selected').val();
var pancontrolval = $('#pancontrol>option:selected').val();
var clickzoomcontrolval = $('#clickzoomcontrol>option:selected').val();
after
$(".settings select").each(function(){
var id = $(this).attr('id');
console.log(id);
});
.each()function that will write it and I am unable to addvalto the end of theidvariable to declare.