@@ -96,9 +96,9 @@ Customize error messages with data-errormessage and data-errormessage-* attribut
9696
9797``` html
9898<input type =" email" name =" email" id =" email" data-validation-engine =" validate[required,custom[email]]"
99- data-errormessage-value-missing =" Email is required!"
100- data-errormessage-custom-error =" Let me give you a hint: someone@nowhere.com"
101- data-errormessage =" This is the fall-back error message." />
99+ data-errormessage-value-missing =" Email is required!"
100+ data-errormessage-custom-error =" Let me give you a hint: someone@nowhere.com"
101+ data-errormessage =" This is the fall-back error message." />
102102```
103103
104104The following attribute's value will be loaded for the relative validation rule:
@@ -219,11 +219,11 @@ An id attribute for the HTML element is required.
219219Syntax (HTML5):
220220``` html
221221<input id =" skipbutton" data-validation-engine-skip =" true" type =" submit" value =" Refresh button" />
222- ```
222+ ```
223223Syntax (use class attribute):
224224``` html
225225<input id =" skipbutton" class =" submit validate-skip" type =" button" value =" Refresh button" />
226- ```
226+ ```
227227
228228### Using a DIV container instead of a FORM
229229
@@ -393,29 +393,29 @@ messages or ID messages.
393393These custom messages are declared in this manner:
394394``` js
395395jQuery (" #formID2" ).validationEngine ({' custom_error_messages' : {
396- ' #someId' : {
397- ' required' : {
398- ' message' : " This is a custom message that is only attached to the input with id 'someId' if it
399- has the validation of 'required'. This will always display, even if it has other
400- custom messages."
401- }
402- ,' custom[min]' : {
403- ' message' : " This is a custom message that is only attached to the input with id 'someID' if it
404- has the validation of 'custom[min[someNumber]]'. This will always display, even if
405- it has other custom messages."
406- }
407- },
408- ' .someClass' : {
409- ' equals' : {
410- ' message' : " This is a custom message that is only attached to inputs that have the class of
411- 'someClass' and the validation type of 'equals'. This will be displayed only on
412- inputs without an ID message."
413- }
414- },
415- ' required' {
416- ' message' : " This is a custom message that replaces the normal error message for the validation
417- 'required'. This only displays when there are no Class or ID messages."
418- }
396+ ' #someId' : {
397+ ' required' : {
398+ ' message' : " This is a custom message that is only attached to the input with id 'someId' if it
399+ has the validation of 'required'. This will always display, even if it has other
400+ custom messages."
401+ }
402+ ,' custom[min]' : {
403+ ' message' : " This is a custom message that is only attached to the input with id 'someID' if it
404+ has the validation of 'custom[min[someNumber]]'. This will always display, even if
405+ it has other custom messages."
406+ }
407+ },
408+ ' .someClass' : {
409+ ' equals' : {
410+ ' message' : " This is a custom message that is only attached to inputs that have the class of
411+ 'someClass' and the validation type of 'equals'. This will be displayed only on
412+ inputs without an ID message."
413+ }
414+ },
415+ ' required' {
416+ ' message' : " This is a custom message that replaces the normal error message for the validation
417+ 'required'. This only displays when there are no Class or ID messages."
418+ }
419419}
420420` ` `
421421
@@ -501,7 +501,7 @@ Please refer to the section *Custom Regex* for a list of available regular expre
501501
502502### custom[function_name]
503503
504- Validates the element's value to a predefined function included in the language file (compared to funcCall that can be anywhere in your application),
504+ Validates the element's value to a predefined function included in the language file (compared to funCall that can be anywhere in your application),
505505
506506` ` ` html
507507< input value= " someone@nowhere.com" class = " validate[required,custom[requiredInFunction]]" type= " text" name= " email" id= " email" / >
0 commit comments