I have a field set as number (num) for validation. The code below will only allow numbers to be accepted in the field.
I would like to modify it such that is MUST have at least two numbers and as many characters as the person wants to type.
Can it be done by manipuplating this code?
Thx
if (validateObject.type == "num" || validateObject.type == "string") {
if ((validateObject.type == "num" && validateObject.len <= 0) || (validateObject.type == "num" && isNaN(validateObject.val))) { errors += language['start'] + language['field'] + validateObject.HTMLname + language['require'] + language['num'] + "\n";