+ 1
Can i change max value through user input?
I want to change the max value of range type input on user input..
8 Answers
+ 1
+ 1
Thank you very much. Its working.
+ 1
I did it already
0
Like this? I'm not sure if you are talking about something like this.
https://code.sololearn.com/WR42VoaJVMsi/?ref=app
0
Your code is outstanding although I can't understand it.
0
So, I create a variable and assign the value of the user input to it. Then I create a for loop which has the condition that I is smaller than this input.
0
Ok but tell me how could I change the value of max attribute
Let me show you what do I need to change
<input type="range" class="fieldB" min="0" max="50" value="25" step="1" onChange="myFunction(this.value)">
The max value that you can see is the value that I want to change on user input
0
Mark the answer as best, then other people having the same problem can see it