Get selected value of option with multiple dropdown menus using javascript
问题 I have multiple features that have multiple options that need to be updated when an option is selected. I also need to pass a third piece of data through the attribute element. .getElementById() works for a single dropdown menu, but how do I get it to work when there are multiple menus on the page? I have tried var e = document.getElementsByClassName("testClass"); which did not work. I also tried to create optionsText & optionsValue in the same way that optionsFtr is created with var