angularjs - Validation on text on alphabets enter -


Anyone uses AngulerJS authentication on the text box, so only enter the characters.

Based on what you want:

letters and spaces: < / P>

  ng-pattern = "/ ^ [a-zA-z \ s] * $ /"   

Letters are not spaces:

  ng-pattern = "/ ^ [a-zA-Z] * $ /"    

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

php - How can I cram 6+31 numeric characters into 22 alphanumeric characters? -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -