我需要编写代码,根据Dojo中Checked Multi Select(“dojox.form.CheckedMultiSelect”)中选择的选项对列表执行一些操作。如何在Dojo中选择一个选项(或多个选项)时编写条件?
<select multiple="true" name="multiselect" data-dojo-type="dojox.form.CheckedMultiSelect" data-dojo-
attach-point="mslt" dropDown="true">
<option value="one" selected="selected" data-dojo-attach-point="chkWQT">Option-1</option>
<option value="two" selected="selected" data-dojo-attach-point="chkWQL">Option-2</option>
</select>
Javascript语言:
if (//Option-1 is selected) {
layerList.push.apply(List, Resources_GRP);
}
1条答案
按热度按时间c86crjj01#