Maybe comma need not be escaped?
This commit is contained in:
parent
8b16abf981
commit
3438812e00
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ $(document).ready(function() {
|
|||
var value = input.val();
|
||||
var errorElement=$("span", input.parent());
|
||||
|
||||
var re = /^[0-9\,\.]+$/;
|
||||
var re = /^[0-9,\.]+$/;
|
||||
var isValid = (re.test(value) && parseInt(value) >= 120);
|
||||
if (isValid) {
|
||||
input.removeClass("invalid").addClass("valid");
|
||||
|
|
Loading…
Reference in a new issue