Whing Dela Cruz
asked on
Validating number not work with decimal
Hi experts, I'm using code in a purpose of validating number, but I've found out that when I use decimal the code will no longer identify as number. I wish to include here decimals and recognize as number. any help pls!
var regex=/^[0-9]+$/;
if (!uc.match(regex) || !sp.match(regex) || !qty.match(regex) || !reOr.match(regex))
{
alert("Input must be numbers");
return false;
}
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER