开发者

dynamically creating entry in drop down box using dojo

开发者 https://www.devze.com 2023-02-18 18:18 出处:网络
开发者_C百科 Merged with how do dynamically create new option of drop down box using dojo. Js code
开发者_C百科 Merged with how do dynamically create new option of drop down box using dojo.

Js code

var ref =dojo.byId("xyz");
var optn = document.createElement("OPTION");
optn.text="txt"
optn.value="val"
ref.options.add(optn);

I want dojo equivalent of above code

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号