Plugins

User login
Can't find a Plugin?

Can't find a Plugin you are looking for? Check out the jQuery Wiki page.

Are you a plugin developer? Please move your plugin over to this site.

Website Bug or Feature Request?

Found a bug on the new jQuery Plugin website? Have a feature request?

Submit it to the jQuery Plugin website issue queue to ensure it is noticed!

jQuery spinbox form element


Average rating
(0 votes)

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 releasesDateSizeLinksStatus
2.0.02009-Oct-256.63 KBRecommended for 1.3.xThis is currently the recommended release for 1.3.x.