我如何检查select option
元素是否具有类 'treeroot' ,如果为真:阻止它从用户中选择?
<select name="_groups_id_assign" size="1" class="valid">
<optgroup label="Entité racine" style="display: none; ">
<option value="6" class="treeroot"
title="Production - ">Production</option>//this one
<option value="8" class="tree"
title="Production > Accident du travail Agent - "
> »Accident du travail Agent</option>
<option value="4" class="treeroot"
title="Production Automobile - "
>Production Automobile</option>//this one
<option value="5" class="tree"
title="Production Automobile > Automobile - "
> »Automobile</option>
</optgroup>
</select>