I want to add a custom function using jquery validation framework, to help validating names (first name and last name) inside a form.
I understand I could just eliminate numbers… but wondering if there is a ‘best practice’ way using jquery validation framework, somebody could suggest me…?
Thanks
I used regular expression to validate the name fields on the form : ^[a-zA-Z’-]+$
using the jquery.validator.addMethod