window.onload = function () { var sel1 = document.getElementById('action5'), sel2 = document.getElementById('product5'); sel1.onchange = function () { sel2.selectedIndex = sel1.selectedIndex; } }