This repository was archived by the owner on Nov 10, 2018. It is now read-only.
File tree 2 files changed +16
-1
lines changed
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ ValidateSimple Method: constructor
91
91
#### Options
92
92
93
93
* active - (boolean: defaults to true) Doesn't attach events until activated.
94
+ * validateOnSubmit - (boolean: defaults to true) validate all inputs on submit and fire events (see below).
94
95
* inputSelector - (mixed: defaults to 'input') CSS Selector or input elements.
95
96
* invalidClass - (string: defaults to 'invalid') class to add for invalid inputs.
96
97
* validClass - (string: defaults to 'valid') class to add for valid inputs.
@@ -111,6 +112,10 @@ ValidateSimple Method: constructor
111
112
* touched - When form has been edited.
112
113
* valid - When form is valid.
113
114
* invalid - When form is invalid.
115
+ * invalidSubmit - (Only when validateOnSubmit is true) When form is submitted and invalid.
116
+ Arguments: this instance and the submit event.
117
+ * validSubmit - (Only when validateOnSubmit is true) When form is submitted and valid.
118
+ Arguments: this instance and the submit event.
114
119
115
120
116
121
ValidateSimple Method: activate
@@ -132,3 +137,13 @@ Deactivates the instance of ValidateSimple (detaches events and sill start firin
132
137
133
138
vs.deactivate();
134
139
140
+
141
+ ValidateSimple Method: validateAllInputs
142
+ ---------------------------------
143
+
144
+ Validates all inputs and returns true for a valid form, false for an invalid form.
145
+
146
+ #### Syntax
147
+
148
+ vs.validateAllInputs();
149
+
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ description: "Simple form validation with good UX"
4
4
category : " Forms"
5
5
tags :
6
6
- " validation"
7
- current : " 0.1 "
7
+ current : " 0.2 "
8
8
author : " 3n"
9
9
10
10
website : " http://www.iancollins.me"
You can’t perform that action at this time.
0 commit comments