disable select option jquery code example
Example 1: jquery disable select
$('#pizza_kind').prop('disabled', false);
Example 2: disable option dropdown jquery
$("#ddlList option[value='jquery']").attr("disabled","disabled");
$('#ddlList option:contains("HTML")').attr("disabled","disabled");
Example 3: how to disable time option in select jquery
$('#fromtime').on('change', function(){
var totimeValues = [];
var fromTime = $(this).val();
$('#totime option').filter(function() {
return $(this).val() <= fromTime;
}).prop('disabled', true);
});