Skip to content

↔️ Let's change values of input numbers by dragging the mouse left & right

License

Notifications You must be signed in to change notification settings

mburakerman/numscrubberjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Numscrubber.js

Let's change values of input numbers by dragging the mouse left & right

Install

NPM

Include numscrubber.js file

<script src="src/numscrubber.js"></script>

or use CDN

<script src="https://unpkg.com/numscrubberjs"></script>

Usage

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!

JSFiddle demo

CodePen demo

Browsers

Works well on all modern browsers.

Size

1.1 kb minified.

License

Licensed under the MIT License.

About

↔️ Let's change values of input numbers by dragging the mouse left & right

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published