I'm trying to duplicate a select menu using JS. I'm very close to getting it right but need some help. What I have so far:
sel.options[i] = document.getElementById('original-menu').options[i];
What it is doing is actually moving the options from select menu A to select menu B and what I want is to duplicate it. Right now when I execute the function that contains the above the original dropdown menu ends up empty with no options.