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 a</option>
<option>Value b</option>
</select>
$variable = <some select option value>;
So if variable is equal to Value a then it needs to be disabled in select option.
Thanks.
With your current markup this will work:
http://jsfiddle.net/CtqC6/
EDIT
http://jsfiddle.net/CtqC6/1/