I have two dropdowns, one where you select a ‘market’ which should then add the child items to the second dropdown, I know I can do this with conditionals, but my dataset is always changing and so I need to be able to change input options on the fly. I have most of the Javascript done, but I need to know a good way of populating an input with Javascript. At the moment I am populating the hidden select input and the visible .chose-results div.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Populate a field with a value depending on dropdown selected | 3 | 3666 | January 5, 2022 | |
Programatically selecting options in a multi-select dropdown [RESOLVED] | 10 | 1487 | April 21, 2022 | |
Append data-attributes to dropdown options | 7 | 1127 | July 21, 2023 | |
Dynamically Populate Dropdowns. Each Dropdown values based on previous choice | 1 | 317 | June 7, 2023 | |
Populate value based on first, second or third choice from dropdown | 2 | 473 | August 28, 2022 |