How to allow only text in parsely.js validation

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

Does anyone know how to do this?

+4
source share
1 answer

You can use the template:

data-parsley-pattern="^[a-zA-Z]+$"
+12
source

Source: https://habr.com/ru/post/1538915/


All Articles