diff --git a/numeric/jquery.numeric.js b/numeric/jquery.numeric.js index 417f26c..e0f35d7 100644 --- a/numeric/jquery.numeric.js +++ b/numeric/jquery.numeric.js @@ -157,11 +157,13 @@ $.fn.numeric.keyup = function(e) if(dot === 0) { this.value = "0" + val; + carat++; } // if dot at position 1, check if there is a - symbol before it if(dot == 1 && val.charAt(0) == "-") { this.value = "-0" + val.substring(1); + carat++; } val = this.value; }