Skip to content
Advertisement

How to change input value as per custom numbers in JavaScript?

I want to change range value as per given custom value in screen shot. Right now I’m getting 1,2,3,4,5,6 values onchange of range but I need 6,12,24,36,48,60 values. How can I do this?

enter image description here

My Code:

JavaScript

ThankYou for your efforts!

Advertisement

Answer

The below snippet solves your problem

Changing this.value to set values in an array

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement