Get all selected options elements from all select elements in a form
var array = [];
$('.skillLevel option:selected').each(function() {
array[ $(this).val()] = $(this).text();
});
You can use map
method:
var arr = $('select.skillLevel').map(function(){
return this.value
}).get()
arr
is an array of values.