How to create a panel of buttons using Javascript?

  javascript

I am creating an animation that plays according to the speed and the color of the user’s choice. I need to create a panel of speeds and colors, but I am not really sure how to crate it using JavaScript. I am only familiar with form in HTML. Maybe I can use

for (i=0; i<=51; ++i){

creates buttons
}

But I am not totally sure, and how to assign corresponding speed and colors.

I need something like this:

enter image description here

I appreciate your help!

Source: Ask Javascript Questions

LEAVE A COMMENT