jQuery plugin - SpinControl

by jerone 16. August 2009 02:29

Today I'm releasing a new jQuery plugin that I've been working on for a few days. This one adds a new control to your toolbox: the SpinControl. The SpinControl is a textbox for numbers only with two buttons on the side that in- or decreases the number input. It's one that software can use for many years, but never made its way into the web. That's why I made this script with the same features and some extra ones.

  This jQuery plugin adds a new control to your toolbox: the SpinControl. The SpinControl is a textbox for numbers only with two buttons on the side that in- or decreases the number input. It's one that software can use for many years, but never made its way into the web. That's why I made this script with the same features and some extra ones.

Some of the features are:

  • Leave already supported number inputs alone (unless you want to override).
  • Options like Min & Max values are possible, even another Step is an option.
  • Using the Tab key will give focus to the buttons.
  • Other keys like Up & Down, mouse events like mousewheel and key down for a few seconds will also in- or decrease the value.
  • Not input bounded, so they can be used everywhere.
  • No style is added in the script itself, so all is fully changeable with CSS. There's a little bit of help given via classes.
  • Cross browser. Tested working in all major browsers: Internet Explorer 6 - 8, Firefox 1 - 3.5, Opera 9 & 10, Chrome 1 - 3 and Safari 4. It should work with newer browsers and may work with older browsers, no promise until tested.

Tags: ,

JavaScript | jQuery

Add comment




  Country flag

biuquotelink
  • Comment
  • Preview
Loading



Tag cloud

This will be shown to users with no Flash or Javascript.

Calendar

<<  July 2010  >>
MoTuWeThFrSaSu
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

View posts in large calendar