How can i make a dynamic html select tag element | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can i make a dynamic html select tag element

hey guys...i have some issues with html select tag..please help me to make a dynamic select element where by if i change a value on select element one the next automatically changes i.e,,i make a select element with options of continents where by if one picks asia the next select element gives only asian countries....or africa:african countries...using html and javascript please...i have tried all my methods but i get errors...thank you in advance fellow sololearners as you take over the world...

9th Mar 2018, 6:23 PM
ANDREW MWEBI
ANDREW MWEBI - avatar
4 Answers
9th Mar 2018, 6:43 PM
ANDREW MWEBI
ANDREW MWEBI - avatar
+ 1
https://code.sololearn.com/wnnMds04NuMW/?ref=app you need something like this, so in nstead of my demo write ups, you can change the view to a select option with the defined order you wish.
10th Mar 2018, 12:53 AM
Strange
Strange - avatar
0
can you show what you've tried?maybe then I can help
9th Mar 2018, 6:40 PM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar
0
why not use objects instead of arrays or a multidimensional arrays?
9th Mar 2018, 6:54 PM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar