I\'ve been playing around with the input type=range for the first time, and ideally I\'d like to set the step value to an array of values. I looked over the spe
input type=range
Having the next input:
0 1 2 3 4 5 6 7 8 9 10 20 30 40 50 60
Here is my function to change the steps by 1 (0-10) and 10 (10-60)
function toggleSteps(element) { var minutes = parseInt(element.value); if (minutes > 10) { element.step = 10; } else { element.step = 1; } }