Posted By

karthikeyan on 09/17/13


Tagged


Versions (?)

decimalValidation


 / Published in: jQuery
 

This allowed only 1234/543.243

  1. function decimalValidation(input) {
  2. var valid = /^[+\-]?(\.\d+|\d+(\.\d+)?)$/.test(input);
  3. return valid;
  4. }

Report this snippet  

You need to login to post a comment.