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

Disallow multiple decimalSeparators #16

Open burnstek opened 9 years ago

burnstek commented 9 years ago

For example:

$('#txtTesting').jStepper({minValue:0, maxValue:23, minLength:1}); // allows "1,1....2,1"

One idea is to only accept the first decimalSeparator.

EmKayDK commented 7 years ago

Hi burnstek

Sorry for the very long time it has taken me to respond to your issue.

I am unsure what you want the plugin to do in this case. If I paste in "1,1....2,1" and try to step up or down, the intended effect occurs.

Can you please provide som more information about what you want the plugin to do?

Thanks in advance.

davee1 commented 6 years ago

I would like to only have one put in, so if they try to type a second one, it gets stripped out, much like if they tried to put in an alpha character.