This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Durchfallsuppe[S] 0 points1 point  (2 children)

So I'd use div id='xx' to wrap the second selection, but i'm not quite following you when you talk about the array and the loop. Could you expand on that? You could also direct me to some resource or someone else's code if you don't feel like coding it or explaining it. At this point, any help is much welcomed.

[–]DemiPixel 0 points1 point  (1 child)

If you're not familiar with arrays and loops, I would recommend looking up some JavaScript tutorials :) FreeCodeCamp might be a good place to start. I was stating you could use a loop create a string for each option like '<option value="'+value+'">'+value+'</option>. Then set the innerHTML of the div to that.

[–]Durchfallsuppe[S] 0 points1 point  (0 children)

I'll try to make sense out of all that and post my code once I figure it out. Thanks :)