For example: $('#txtTesting').jStepper({minValue:0, maxValue:23, minLength:1}); // allows "1,1....2,1" One idea is to only accept the first decimalSeparator.