Apply these code:
let regExp = new RegExp('^[a-zA-Z ]'); if(this.user_name==""){ this.sysprvd.showAlert("Opps!","Please enter your Name"); }else if(!regExp.test(this.user_name)){ this.sysprvd.showAlert("Opps!","user Name must be Alphabet character"); }else if(this.user_email==""){ this.sysprvd.showAlert("Opps!","Please enter your Email"); }
Question and answer is powered by AnsPress.io