You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/documentation.md
+40-81Lines changed: 40 additions & 81 deletions
Original file line number
Diff line number
Diff line change
@@ -70,106 +70,65 @@ Throughout the documentation, two terms, that you need to know about and their m
70
70
***method**: A validation method implements the logic to validate an element, like an email method that checks for the right format of an text input's value. A set of standard methods is available, and it is easy to write your own.
71
71
***rule**: A validation rule associates an element with a validation method, like "validate input with name "primary-mail" with methods "required" and "email".
72
72
73
-
For now, use the search or these category pages to look for API documentation entries:
74
-
75
-
*[jQuery plugins](/category/plugin/)
76
-
*[Validator methods](/category/validator/)
77
-
*[all methods](/category/methods/)
78
-
*[Custom selectors provided by the plugin](/category/selectors/)
79
-
80
-
<!--
81
-
For a start, the validate-method:
82
-
83
73
## Plugin methods
84
74
85
-
{{APIList|
86
-
{{APIListHeader|Plugin methods}}
87
-
{{:Plugins/Validation/validate}}
88
-
{{:Plugins/Validation/valid}}
89
-
{{:Plugins/Validation/rules}}
90
-
{{:Plugins/Validation/removeAttrs}}
91
-
}}
75
+
This library adds three jQuery plugin methods, the main entry point being the `validate` method:
92
76
93
-
## Custom selectors
77
+
*[`validate()` - Validates the selected form.](/validate)
78
+
*[`valid()` - Checks whether the selected form or selected elements are valid.](/valid)
79
+
*[`rules()` - Read, add and remove rules for an element.](/rules)
94
80
95
-
{{APIList|
96
-
{{APIListHeader|Custom selectors}}
97
-
{{:Plugins/Validation/blank}}
98
-
{{:Plugins/Validation/filled}}
99
-
{{:Plugins/Validation/unchecked}}
100
-
}}
81
+
## Custom selectors
101
82
102
-
## Utilities
83
+
This library also extends jQuery with three custom selectors:
103
84
104
-
{{APIList|
105
-
{{APIListHeader|String utilities}}
106
-
{{:Plugins/Validation/jQuery.validator.format}}
107
-
}}
85
+
*[`:blank` - Selects all elements with a blank value.](/blank-selector)
86
+
*[`:filled` - Selects all elements with a filled value.](/filled-selector)
87
+
*[`:unchecked` - Selects all elements that are unchecked.](/unchecked-selector)
108
88
109
89
## Validator
110
90
111
91
The validate method returns a Validator object that has a few public methods that you can use trigger validation programmatically or change the contents of the form. The validator object has more methods, but only those documented here are intended for usage.
0 commit comments