I am working on a website that has a dropdown box at the top and bottom of the page. I want to make it so that if a user selects an item from the top or bottom dropdown, the change is reflected in the opposite dropdown.
For example say each dropdown has 2 selections (Yes and No). If a user changes either box to “No”, the both boxes would display “No”.
I found this code, but i am not sure how to implement it, or if it is even the right thing for what I am trying to do.
[CODE]
<script language=”javascript”>
<!–
function setSelect (name1, name2) {
var select1 = document.forms.formname.elements[name1];
var select2 = document.forms.formname.elements[name2];
select1.selectedIndex = select2.selectedIndex;
}
//–>
</script>