Copy all options from one dropdown to another
I have a function that is adding blank dropdowns (selects) to a table.
The first row of my table shows a dropdown ("d1") with a list of options to select.
Can someone tell me how I can manage that by click on a button the list of options from d1 gets copied to a specific other dropdown (e.g. "d2") so that in the end both dropdowns show exactly the same values ?
Many thanks in advance for your help,