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.
Real cool one.
Thanks Tashi, glad you liked it π
am building this site, and i ll let you know where i have implemented it.
Hey, that would be great π Thanks again!
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.
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: https://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?