How do you disable some items of a drop down element using jQuery or JavaScript?
The same way you would disable any other HTML element, use
$(/* option selector */).prop('disabled', true);
See it in action.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With