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
In case anyone wants to be able to disable a drop down list by text instead of value, here's what I did:
$("#DDL option").filter(function () { return $(this).text() === "Text 1" || $(this).text() === "Text 2" || $(this).text() === "Text 3"; }).prop("disabled", true);