If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

And i want to make the mainDropDown have the same options as dropDown1 what is the best way to do this? I tried just assigning the mainDropDown= dropDown1 element but this doesnt work. Is my only option to delete the children of mainDropDown, store the dropDown1 elements in an array and then re-create the elements of mainDropDown in a for loop?
If so how do i delete a child and also create another?

Sorry Gullanian but did you actually read the question i posted? This has nothing to do with onChange, as soon as the page loads i want the select to be the same as the other i.e. exactly the same options.

My question is not how i can get it to execute via page loading or onChange, it is about actually doing what im asking, which is how do i make a drop down the same as another. How this code gets executed is irrelevant.