├── .gitignore
├── jquery.fs.stepper-arrows.png
├── README.md
├── bower.json
├── stepper.jquery.json
├── package.json
├── src
├── jquery.fs.stepper.css
└── jquery.fs.stepper.js
├── jquery.fs.stepper.css
├── demo
└── index.html
├── jquery.fs.stepper.min.js
├── Gruntfile.js
└── jquery.fs.stepper.js
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/*
--------------------------------------------------------------------------------
/jquery.fs.stepper-arrows.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FormstoneClassic/Stepper/HEAD/jquery.fs.stepper-arrows.png
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
47 |
48 |
54 |
55 |
56 |
57 |
58 |
Basic
59 |
The most basic method is simply applying the Stepper plugin:
60 |
61 |
<input type="number" />
62 |
$("input[type='number']").stepper();
63 |
64 |
Demo
65 |
68 |
69 |
70 |
71 |
72 |
Ranges
73 |
Stepper will automatically detect the minimum, maximum and increment values based on the min, max and step attributes:
74 |
75 |
<input type="number" min="2" max="20" step="2" />
76 |
77 |
Demo
78 |
81 |
82 |
83 |
84 |
85 |
86 |
91 |
92 |
--------------------------------------------------------------------------------
/jquery.fs.stepper.min.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Stepper v3.0.8 - 2015-04-04
3 | * A jQuery plugin for cross browser number inputs. Part of the Formstone Library.
4 | * http://classic.formstone.it/stepper/
5 | *
6 | * Copyright 2015 Ben Plum; MIT Licensed
7 | */
8 |
9 | !function(a,b){"use strict";function c(b){b=a.extend({},m,b||{});for(var c=a(this),e=0,f=c.length;f>e;e++)d(c.eq(e),b);return c}function d(b,c){if(!b.hasClass("stepper-input")){c=a.extend({},c,b.data("stepper-options"));var d=parseFloat(b.attr("min")),g=parseFloat(b.attr("max")),h=parseFloat(b.attr("step"))||1;b.addClass("stepper-input").wrap('