jquery-inputnumber

0.1.4 • Public • Published

HTML5 like input number

HTML5 like input number, but better

Features

  • Simple and easy to install.
  • Only 1 KB (minified gzipped).

Installation

Simple

Include jQuery and jquery.inputNumber.js onto your page:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script src="jquery.inputNumber.js"></script>
<link rel="stylesheet" href="inputNumber.css">

If you want mousewheel support include:

<script src="jquery.mousewheel.js"></script>
$('input.num').inputNumber({
	negative:true, //allow negative numbers
	positive:true, //allow positive numbers
	wrapClass:'ranged-input',
	upClass:'up',
	upTitle:'Incrase',
	downClass:'down',
	downTitle:'Decrace'
});

Npm

npm install jquery-inputnumber
import InputNumber from 'jquery-inputnumber';
import 'jquery-inputnumber/inputNumber.css';

$('input.num').inputNumber();

License

The MIT License, see the included License.md file.

/jquery-inputnumber/

    Package Sidebar

    Install

    npm i jquery-inputnumber

    Weekly Downloads

    0

    Version

    0.1.4

    License

    MIT

    Unpacked Size

    19.6 kB

    Total Files

    6

    Last publish

    Collaborators

    • jilizart