$('#pizza_kind').prop('disabled', false);
//disable by value
$("#ddlList option[value='jquery']").attr("disabled","disabled");
//disable by text
$('#ddlList option:contains("HTML")').attr("disabled","disabled");
$("select option:contains('Value b')").attr("disabled","disabled");
$("select option[value='"+ $variable + "']").attr('disabled', true);
//JS
$("#theSelect").change(function(){
var value = $("#theSelect option:selected").val();
var theDiv = $(".is" + value);
theDiv.slideDown().removeClass("hidden");
});
$("div a.remove").click(function () {
$(this).parent().slideUp(function() { $(this).addClass("hidden"); });
});
//HTML
<body>
<div class="selectContainer">
<select id="theSelect">
<option value="">- Select -</option>
<option value="Patient">Patient</option>
<option value="Physician">Physician</option>
<option value="Nurse">Nurse</option>
</select>
</div>
<div class="hidden isPatient">Patient <a href="#" class="remove" rel="Patient">remove</a></div>
<div class="hidden isPhysician">Physician <a href="#" class="remove" rel="Patient">remove</a></div>
<div class="hidden isNurse">Nurse <a href="#" class="remove" rel="Patient">remove</a></div>
</body>
$('#fromtime').on('change', function(){
var totimeValues = [];
var fromTime = $(this).val();
$('#totime option').filter(function() {
return $(this).val() <= fromTime;
}).prop('disabled', true);
});