3
두 개의 콤보 상자가있는 form
입니다. 하나는 정상이고 다른 하나는 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
에서 작동하지 않습니다. 이 작업을 수행하는 방법?