I am using jquery validation plugin with php on ubuntu.
I am applying validation on my forms like this:
$(obj).find("form").validate();
When I set "email" as class of any text field and I give it a wrong formated email address, it show the following error like this.
Please enter a valid email address.
Question: Above message is very lengthy and damage the alignment of my form and table. I want to use very short messages like this.
required
invalid email
invalid phone number
etc.
I have tried this but it is showing its own messages not mine.
$(obj).find("form").validate({
messages: {
required: "Required.",
email: "Invalid email",
url: "Invalid URL."
}
});
can any one tell me how should I do this? What is the exact code. "Messages" option is not working for me. Thanks