Skip to content

Commit 43ac3a5

Browse files
pro2sstaabm
authored andcommitted
Fix message usage example in validate (#49)
https://jqueryvalidation.org/validate/#messages First line of example code
1 parent aed5496 commit 43ac3a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entries/validate.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
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.
155155
<p><strong>Example</strong>: 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.</p>
156156
<pre><code>
157-
$$("#myform").validate({
157+
$("#myform").validate({
158158
rules: {
159159
name: "required",
160160
email: {

0 commit comments

Comments
 (0)