« Return to Thread: JQuery Plugin: SpinBox / SpinButton Control (with no extra markup)

Little Bug

by AKB :: Rate this Message:

Reply to Author | View in Thread

I have found a little bug while trying to use it (last version from http://www.softwareunity.com/sandbox/jqueryspinbtn/)

It seems to fail when you set the min value to 0, like this:

var myOptionsHour = { min: 0, max: 23, step: 1 }
$("#someid").SpinButton(myOptionsHour);

Everything works fine, but it allows you to spin to negative values, just doesn't respect the 0 min value.

Seems to be a problem in adjustValue() function... sorry i can't help more, i'm just a newbie to javascript (And English tbh!).

I have "fixed" it for me in the mean time by just passing min as text...

var myOptionsHour = { min: "0", max: 23, step: 1 }
$("#someid").SpinButton(myOptionsHour);

Thanks for this great piece of software !

 « Return to Thread: JQuery Plugin: SpinBox / SpinButton Control (with no extra markup)