Question : Copy what selected in a drop down to another drop down,

function copycompinfo()
                  {
                  acountry.value = bcountry.value;
                  Info7.value = info8.value;
                  }

this function copy values from another form to another, one of this is a dropdown, <select>

The problem is it works perfect in FF chrome, but in IE (IE8) it dsnt copy what selected. Why is that ?
            

Answer : Copy what selected in a drop down to another drop down,

pretty sure that you have a couple of problems.

One is that you need to reference the variable correctly:

mySelect1 = document.getElementById("CompanyInfo7");
mySelect2 = document.getElementById("CCInfo7");

Then I think you need to use the selectedIndex.

mySelect2.selectedIndex = mySelect1.selectedIndex;
Random Solutions  
 
programming4us programming4us