[Solved] Why is .2 not a valid number for jquery.validate.js? [closed]


jsFiddle Demo

You could always implement a small observer to fix the case where a number input starts with . like this:

$('body').on('blur','input[data-val-number]',function(){
 if( this.value[0] == "." ){
  this.value = "0" + this.value;
  $(this).valid();
 }
});

2

solved Why is .2 not a valid number for jquery.validate.js? [closed]