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.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…