Top Menu
Characters Validation
 You want to Type only Characters then use this Function if you Type numeric the return false

var charSetName=”abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ”;
function isName(myst) {
var i;
for (i = 0; i < myst.length; i++) {
var c = myst.charAt(i);
if (charSetName.indexOf(c) < 0) {
return false;
}
}
return true;
}

About The Author

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Close