Skip to content

Commit dc921f6

Browse files
rosyatrandomjzaefferer
authored andcommitted
Update validate.xml. Closes gh-4.
Corrected typos, improved readability
1 parent 33a798a commit dc921f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entries/validate.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
<p>The callback gets passed two arguments:</p>
7575
</desc>
7676
<property name="event" type="Event">
77-
<desc>A custom event object, since this function is bound as an event hanlder.</desc>
77+
<desc>A custom event object, since this function is bound as an event handler.</desc>
7878
</property>
7979
<property name="validator" type="Validator">
8080
<desc>The validator instance for the current form.</desc>
@@ -130,7 +130,7 @@
130130
</property>
131131
<property name="messages" default="the default message for the method used">
132132
<desc>
133-
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 and with the rule's parameters as the first and the element as the second arugment, it must return a String to display as the message.
133+
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.
134134
<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>
135135
<pre><code>
136136
$(".selector").validate({

0 commit comments

Comments
 (0)