JavaScript in multiple files
- by vijay.shad
Hi,
I Have created two JavaScript files.One file is "validators.js" and other is "UserValidations.js".
Here is the code for validators.js
function isBlankString(value) {
if (value.replace(/\s/g, "") == "") {
return true;
} else {
return false;
}
}
In other js file I have defined function for validating user name…