function helo()
{
var a = document.getElementById('targetDiv');
opt = document.createElement("option");
opt_txt = document.createTextNode("aaaa");
opt.appendChild(opt_txt);
opt.setAttribute("value", "bbbbb"); a.appendChild(opt);
}
< onclick="helo();">Using JavaScript functions
< id="targetDiv" size="5">
< id="'a'">hh< / option >
< / select >
No comments:
Post a Comment