I am struggling to figure out how to validate the input in a textbox using a JS regular expression validator when working with a decimal set up as decimal(7,2) in the database.
function ValidateBoxes(input) {
var valid = (input.match(/^\d+(?:\.\d+)?$/));
if (valid = null) {
alert("Decimals should be within 99999.99 range")
} else {
return true;
}
}