Now, to avoid querying the DOM unnecessarily you may:
var box1 = document.getElementById('comboxbox1');
var box3 = document.getElementById('comboxbox3');
for (i = 0; i < box3.options.length; i++) {
box1.options[i].value = box3.options[i].value;
}
I'm sure there is a more efficient way of doing this but this is not a JavaScript forum which is why I dared to give the code above without much embarrassment
Try this -- I don't think njsden's code will work.
function onInitialUpdate()
{
var box1 = document.getElementById("combobox1");
var box2 = document.getElementById("combobox2");
for (i = 0; i < box1.options.length; i++) {
var opt = document.createElement("option");
box2.options.add(opt);
opt.text = box1.options[i].text;
opt.value = box1.options[i].value;
}
}
WebFocus 7.1.3 Developer studio 7.6.4 Windows Excel, HTML and PDF