jQuery spinbox form element
Converts a textbox into a spinner control without adding any mark-up to the page. Provides a handy ui field for selecting numeric input.
(The appearance of the up/down buttons is provided by a background image sprite)
$("INPUT.spinbox").spinbox();$("INPUT.spinbox").spinbox({
min: 0, // Set lower limit or null for no limit.
max: 100, // Set upper limit or null for no limit.
step: 0.5, // Set increment size.
});The spinbox() method accepts a hash of options such as min and/or max to limit the spinner value and step to specify the size of the increments. Accepts keyboard control via up and down keys as well as mouse wheel (in addition to typing into the text box as normal). Specify bigStep option to apply larger increments when page up or page down is pressed or when the Shift button is held down
Releases
| Official releases | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 2.0.0 | 2009-Oct-25 | 6.63 KB | Recommended for 1.3.x | ||
