I am using jquery validation plugin for form validation. I have added a custom method to validate a date in the custom format. But somehow if users don’t type anything in that date textbox, it doesn’t give any error. Does anybody know how to check for blank or empty value?
EDIT : May be I didn’t frame my question correctly. I want to show error message when user is in textbox for typing the value and he doesn’t type anything. Onblur kind of event.
Thanks
You have to give it the class “required” as well.
EDIT: adding the “required” class lets the validation plugin know this is required and will check for it to not be empty.