Val Select = null if values ββare disabled
2 answers
Try this ==>
alert($('#testselect option[disabled]:selected').val());
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<select id="testselect">
<option disabled>1</option>
<option disabled>2</option>
<option disabled selected>3</option>
</select>
+2
source to share
You must be specific about the value of the returned item.
alert($("#testselect option:selected").val());
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<select id="testselect">
<option disabled>1</option>
<option disabled>2</option>
<option disabled selected>3</option>
</select>
+3
source to share