JavaScript slider help

I’m using nouislider and I need the range to be variables from my array. But I’m very new to JavaScript so I don’t know how it is done. The variables go into a price calculating script and are used with my database. The values need to be [“level one”, “level two”] up to 60 corresponding with the slider of 1-60. I’m really stuck so I appreciate the help

If you are new to JavaScript, I suggest checking out our Basic JavaScript section and work from there.

1 Like