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,
This should be a faster solution
$('select').children('option[value="' + $variable + '"]').attr('disabled', true)