Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to only allow text in parsely.js validation

I am using the nifty parsley js As you can see in the documentation there is only data-parsley-type="alphanum" which allows numbers and letters. I am trying to create fields that ONLY allow letters.

Anyone know how to do this?

like image 277
user2684452 Avatar asked May 01 '14 20:05

user2684452


1 Answers

You could use a pattern:

data-parsley-pattern="^[a-zA-Z]+$"
like image 148
rid Avatar answered Sep 27 '22 20:09

rid