我有一个表单,里面有两个下拉框。其中一个是普通的下拉框,另一个是 dijit.form.Combobox
。
<select id="mySel"></select>
<select dojotype="dijit.form.ComboBox" id="dsel"/>
我能通过以下脚本向常规项目中添加项目。
var opt = mySel.appendChild(document.createElement('option'));
opt.text = "My sample text"
但是在
dijit combo
中这个方法不起作用。怎么办?