From 31e09a6f01b8c67e56a2eec0f96361051914c46a Mon Sep 17 00:00:00 2001 From: "s.protasov" Date: Mon, 28 Oct 2019 01:55:42 +0300 Subject: [PATCH] Fix message usage example in validate https://jqueryvalidation.org/validate/#messages First line of example code --- entries/validate.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entries/validate.xml b/entries/validate.xml index 0a50c39..640ed6c 100644 --- a/entries/validate.xml +++ b/entries/validate.xml @@ -154,7 +154,7 @@ Key/value pairs defining custom messages. Key is the name of an element, value the message to display for that element. Instead of a plain message, another map with specific messages for each rule can be used. Overrides the title attribute of an element or the default message for the method (in that order). Each message can be a String or a Callback. The callback is called in the scope of the validator, with the rule's parameters as the first argument and the element as the second, and must return a String to display as the message.

Example: Specifies a name element as required and an email element as required and a valid email address. A single message is specified for the name element, and two messages for email.


-					$$("#myform").validate({
+					$("#myform").validate({
 						rules: {
 							name: "required",
 							email: {