Mouse interaction for number inputs
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE.txt
README.md
example.html
jquery-draggable-input.js

README.md

jQuery Draggable Input

draggable-input is a jQuery plugin that handles mouse events on text inputs to increase and decrease their integer / float values. Clicking and dragging up results in increasing the number, dragging down decreases the number.

    $('input.integer').draggableInput({
        type: 'float',         // Value type (integer or float)
        min: -1.0,             // Minimum value
        max: 1.0,              // Maximum value
        scrollPrecision: 0.01, // How much to add / remove per pixel
        precision: 2           // Decimal precision
    });

Examples

See it in action here

License

Copyright © 2012 Sascha Gehlich, licensed under the MIT License.