Forum Moderators: open
a = document.getElementById("a");
b = document.getElementById("b");
len = a.length;
for(i = 0; i < len; i++) {
elOptNew = document.createElement('option');
elOptNew.value = a.options[i].value;
elOptNew.text = a.options[i].text;
try {
b.[url=http://www.w3schools.com/htmldom/met_select_add.asp]add[/url](elOptNew, null);
}
catch(e)
{ alert("exception caught"); }