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
@@ -50,13 +44,10 @@ to load **only those functions that's needed** to validate a particular form.
50
44
***validate_int**
51
45
***validate_date** — *yyyy-mm-dd (format can be customized, more information below)*
52
46
***validate_length** — *Validate that input length is in given range (length3-20)*
53
-
<<<<<<< .merge_file_MDtscE
54
47
***validate_confirmation**
55
48
***validate_spamcheck**
56
49
***validate_ukvatnumber**
57
50
***validate_swesec** — *validate swedish social security number*
58
-
=======
59
-
>>>>>>> .merge_file_lzk9nf
60
51
***required** — *no validation except that a value has to be given*
61
52
***validate_custom** — *Validate value against regexp (validate_custom regexp/^[a-z]{2} [0-9]{2}$/)
62
53
***validate_num_answers** — *Validate that a select element has the required number of selected options (validate_num_answers num5)*
@@ -92,10 +83,7 @@ to load **only those functions that's needed** to validate a particular form.
92
83
### Misc (part of core)
93
84
* Show help information automatically when input is focused
94
85
* Validate given values immediately when input is blurred.
95
-
<<<<<<< .merge_file_MDtscE
96
-
* Make validation optional by adding attribute data-validation-optional="true" to the element. This means that the validation defined in data-validation only will take place in case a value is given.
97
86
* Make validation dependent on another input of type checkbox being checked by adding attribute data-validation-if-checked="name of checkbox input"
98
-
=======
99
87
* Make validation optional by adding attribute data-validation-optional="true" to the element. This means
100
88
that the validation defined in data-validation only will take place in case a value is given.
101
89
* Make validation dependent on another input of type checkbox being checked by adding attribute
@@ -179,8 +167,6 @@ caches the javascript).
179
167
The second argument is the path where the module files is located. This argument is optional, if not given
180
168
the module files has to be located in the same directory as the core modules shipped together with this jquery plugin
181
169
(js/formvalidator/)
182
-
>>>>>>> .merge_file_lzk9nf
183
-
184
170
185
171
## Validate inputs on blur
186
172
It is possible to show that the value of an input is incorrect immediately when the input gets blurred.
@@ -204,13 +190,8 @@ It is possible to display help information for each input. The information will
<textareaname="why"data-validation-help="Please give us some more information"data-validation="required"></textarea>
210
-
=======
211
-
<strong>Why not?</strong>
212
-
<textareadata-help="Please give us some more information"data-validation="required"></textarea>
213
-
>>>>>>> .merge_file_lzk9nf
214
195
</p>
215
196
...
216
197
</form>
@@ -274,7 +255,7 @@ $('#my_form')
274
255
## Localization
275
256
This plugin contains a set of error dialogs. In case you don't define an inline error message the plugin
276
257
will fall back on one of the dialogs below. You can how ever add the attribute *data-validation-error-msg* to an
277
-
element, and that message will be displayed instead. All error dialogs can be overwritten by passing an
258
+
element, and that message will be displayed instead. All error dialogs can be overwritten by passing an
278
259
object into the validation function.
279
260
280
261
```javascript
@@ -317,7 +298,7 @@ var enErrorDialogs = {
317
298
...
318
299
```
319
300
320
-
Inline error messages is also possible. If you add attribute data-validation-error-msg to an element the value of that attribute will be displayed instead of the error dialog that the validation function referrs to.
301
+
Inline error messages is also possible. If you add attribute data-validation-error-msg to an element the value of that attribute will be displayed instead of the error dialog that the validation function refers to.
0 commit comments