EmKayDK / jstepper

A jQuery plugin usable for making a numeric textfield value easy to increase or decrease
ISC License
18 stars 6 forks source link

Fixed invalid negative input #14

Closed Benzolitz closed 9 years ago

Benzolitz commented 9 years ago

Currently the script only checkes if the input has a bigger length then maxValue. If you want to enter a negative Value which is longer than the maxValue, the script stops you from doing so. Only possibility was to use the mousewheel.

Benzolitz commented 9 years ago

$('#txtTesting').jStepper({minValue: -9999, maxValue: 20, overflowMode: 'ignore'});

I can write -9, but I can't add another 9. The script will stop me because the only check is if the Value.length is bigger than maxValue.length.

Benzolitz commented 9 years ago

Didn't want to close :D

EmKayDK commented 9 years ago

Fixed! Thanks for the contribution :)