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
Working demo http://jsfiddle.net/BYkVW/ or http://jsfiddle.net/BYkVW/1/
Hope it helps the needs :)
:)
code
$("#field_0_1 option[value='- Sold Out -']").attr('disabled','disabled');
or
$("#field_0_1 option[value='- Sold Out -']").prop('disabled','disabled');
working image