|
|
Browse by Tags
All Tags » regexp javascri... » alphanumeric with restraints
-
Good Day.
I am using the following code to validate data on a HTML page
function checkTermMoYr (strng) {
var error = "";
if (strng == "") {
error = "You didn't enter a Loan Term.\n";
}
//var illegalChars = /\W/;
var illegalChars = \s;
// allow only letters, numbers, ...
|
|
|