micjohnson
Programmer
I need to validate my Name field. Field should be only characters. No numbers in that. Any script available to validate (First name or Last Name)
Appreciate
micJ
Appreciate
micJ
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
function validateCharsOnly(obj) {
var re = /^[a-zA-Z]+$/;
alert( re.text(obj.value) );
}
<input type="text" name="t1" onblur="validateCharsOnly(this);" />