on the <input type="range" /> I need the min=""-value to be bigger than the max=""-value,
for example values from 100 to 0:
<input type="range" min="100" max="0" /> Is this possible in some way? It would be fine to use JavaScript.
Here a Demo of what I mean:
0 to 100: (this is working) <input type="range" min="0" max="100" step="any" style="width: 100%" oninput="document.getElementById('test').innerHTML = this.value" onchange="document.getElementById('test').innerHTML = this.value" /> <br /> 100 to 0: (not working in IE, Edge, Firefox and Chrome*) <input type="range" min="100" max="0" step="any" style="width: 100%" oninput="document.getElementById('test').innerHTML = this.value" onchange="document.getElementById('test').innerHTML = this.value" /> <br /> 100 to 0: hack <input type="range" min="0" max="100" step="any" style="width: 100%; direction: rtl;" oninput="document.getElementById('test').innerHTML = this.value" onchange="document.getElementById('test').innerHTML = this.value" /> <br /> <div id="test"></div> I basically want a from - to slider, not min - max
EDIT: I don't want this to happen: (slider colors are flipped as well)
Which is done by my example direction: rtl; but also transform: scaleX(-1); and transform: rotate(180deg);