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; }