Get Value of Disabled Option in Select Multiple Jquery
DEMO
var opt = $('#empPositions option:selected').map(function(i,v) {
return this.value;
}).get(); // result is array
alert( opt );
Please bear in mind that when you submit the form disabled options wont be submitted even if they are selected. If you're submitting via AJAX, then you can grab the values as shown above.
Also bear in mind that $('option[disabled]').val()
will return the value of the first disabled option
element and $('option[disabled]:selected').val()
the value of the first selected disabled option.
If there's always just one selected disabled
option element you can target it using:
var opt = $('#empPositions option[disabled]:selected').val(); // result is string