An Up/Down control in jQuery

Make machines do your bidding with JavaScript. Check out The Little Book of JavaScript!

Recently, I needed to write an up/down selector – you know the sort, it’s where you select a number by clicking on an up or down arrow. Since they can be useful for other things besides numbers, I gave it the plugin treatment.

Most of the information about the plugin can be found in its documentation page.

Also available is a slightly beefier styled and animated demo of the plugin.

If you’re just interested in the plugin itself, you can find it here.

7 thoughts on “An Up/Down control in jQuery

  1. I am very impressed by the work that went into this. But I am disappointed by not being able to use the standard function(){} chaining that JQuery implements. The rather vague description of how to use the valuechangedcallback to set the value in a text box unfortunately doesn’t make up for the off-standard implementation of a JQuery plugin. (It would probably help if you showed an example, rather than just describing it, but it would be even better if you implemented the standard.)

    Hope you take this criticism in the spirit in which it is offered.

  2. Thank you for your comment, JonO. The change for chaining should be quite easy to add, and it adds value so will try to implement it soon. Thanks for the heads-up :)

    With regards to the documentation and examples for valuechangedcallback, there’s a very basic example here: http://karlagius.com/files/jquery-plugins/jquery-updown/doc.html#div which is probably as simple as it gets. Are there any specific details you feel should be described in more depth?

  3. Pingback: JavaPins

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>