I need to disable options with value \"- Sold Out -\" in a list of dynamic drop down menus. How can I do this easily with jQuery? Below is the HTML
$("select option[value*='Sold Out']").prop('disabled',true);
Demo
$('#previous_select').on('change', function() { // after creating the option // try following $("select option[value*='Sold Out']").prop('disabled',true); });