My validation accepts only alphabets. I want allow spaces as well. What change needs to be done here? Answer Instead of the below regex: Use this: This will also take the space.
Tag: jquery-validate
Dynamic jQuery Validate error messages with AddMethod based on the element
Let’s say I have a custom AddMethod to jQuery Validate like: I can’t figure out a way to get the element variable in question, and get any values from it. What am I missing here? Answer From looking at the validator source code, I think this should do it: In your original code, the message string is NOT within the