When the entered value is `.2` instead of `0.2`, the value is marked invalid when it is actually valid. While a javascript number can't be written as `.2`, `<input>` values (e.g. `$('<input>').val()`) are strings. jsFiddle: http://jsfiddle.net/j6ku2o18/3/