I want to apply to the field check through the pattern. Something like this:
$(document).ready(function(){ $("#registration-form").validate({ rules:{ login:{ required: true, minlength: 5, maxlength: 10, regexp: '[a-zA-Zа-яА-Я]{5,10}' }, }, messages: { login: { regexp: 'Username are 5-10 characters' } } }); });
But this method does not work. How can I make a check on the pattern? (Without PHP)