+ 1

Multiple Drop_Down Parent

Please How Can I append children from an array of options to multiple elements with the same id. https://code.sololearn.com/WZQwaAQ2Ck7g/?ref=app Something like the code above

14th Dec 2020, 9:12 AM
Ibrahim Yusuf
Ibrahim Yusuf - avatar
2 odpowiedzi
+ 2
Ipang thanks man
14th Dec 2020, 9:47 AM
Ibrahim Yusuf
Ibrahim Yusuf - avatar
+ 1
Use `class` rather than `id` when you target multiple elements. Then you can use querySelectorAll() to collect all <select> under that class and add an option for each <select>.
14th Dec 2020, 9:22 AM
Ipang