Here's my code, which I know is very inefficient:
var slider1 = new Slider("#survey1", {
precision: 2,
value: 5
})
var slider2 = new Slider("#survey2", {
precision: 2,
value: 5
})
var slider3 = new Slider("#survey3", {
precision: 2,
value: 5
})
var slider4 = new Slider("#survey4", {
precision: 2,
value: 5
})
var slider5 = new Slider("#survey5", {
precision: 2,
value: 5
})
I know this can be done more efficiently. It should continue up to "#survey13" but for the sake of saving space, I skipped those details. Perhaps using a for loop would make it cleaner? How could I incorporate a counter into the variable name and referenced ID?