Horje
jquery disable select Code Example
jquery disable select
$('#pizza_kind').prop('disabled', false);
disable option dropdown jquery
//disable by value
$("#ddlList option[value='jquery']").attr("disabled","disabled");

//disable by text
$('#ddlList option:contains("HTML")').attr("disabled","disabled");
how to disable option after select using jquery
//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 rel="nofollow" href="#" class="remove" rel="Patient">remove</a></div>
<div class="hidden isPhysician">Physician <a rel="nofollow" href="#" class="remove" rel="Patient">remove</a></div>
<div class="hidden isNurse">Nurse <a rel="nofollow" href="#" class="remove" rel="Patient">remove</a></div>
</body>​




Javascript

Related
document on click dynamic element Code Example document on click dynamic element Code Example
breakline in react native Code Example breakline in react native Code Example
jquery extract number from string Code Example jquery extract number from string Code Example
js fake await Code Example js fake await Code Example
create hash in node js Code Example create hash in node js Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7