I need to disable a select option based on the value of a variable. The value is similar to one of the select option value and it needs to be disabled.
For ex,
$("select option[value='"+ $variable + "']").attr('disabled', true);