I'm currently working on a code to validate the contents of my input field, but I've encountered an issue with using the contains function.
Here's the TypeScript function I have written:
checkFnameFunction(name){
if(name.contains("[a-zA-Z]+") == false && name.length() > 3){
this.checkFname=true;
alert("true");
}else{
this.checkFname=false;
}
}