Let's change values of input numbers by dragging the mouse left & right
Include numscrubber.js file
<script src="src/numscrubber.js"></script>or use CDN
<script src="https://unpkg.com/numscrubberjs"></script>Just add data-numscrubber to your input number
<input data-numscrubber type="number" value="6" min="4" max="50" />and then call init()
<script>
Numscrubber.init();
</script>Thats it!
Works well on all modern browsers.
1.1 kb minified.
Licensed under the MIT License.