Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery option not disabled

const opt = $('#select option:not(:disabled)'); // array with all options not disabled
const first = $($('#select option:not(:disabled)')[0]); // first option not disabled
 
PREVIOUS NEXT
Tagged: #jquery #option #disabled
ADD COMMENT
Topic
Name
2+1 =