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: README.md
+46-84Lines changed: 46 additions & 84 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ it's designed to require as little bandwidth as possible. This is achieved by gr
6
6
in "modules", making it possible for the programmer to load **only those functions that's needed** to validate a
7
7
particular form.
8
8
9
-
**Form demos and full documentation is available at http://formvalidator.net/**
9
+
**Form demos and full documentation available at http://formvalidator.net/**
10
10
11
11
*Usage example*
12
12
@@ -38,24 +38,22 @@ particular form.
38
38
</script>
39
39
```
40
40
41
-
### Moving up to version 2.0
41
+
### Support for HTML5
42
42
43
-
So what has changed since version 1.x?
43
+
As of version 2.2 (unreleased) you can use this plugin as a fallback solution for the validation attributes in the HTML5 spec. Add the module `html5` to the module declaration and you can use the following native features:
You can cause an element to be validated upon the firing of an event, by attaching an attribute to the form input element named `data-validation-event="click"`. When the configuration settings have `validateOnEvent : true`, the click event will trigger the onBlur validaton for that element. Possible use case: Checkboxes. Instead of waiting for the checkbox to lose focus (blur) and waiting for a validation to occurr, you can specify that elements validation should occur as soon as that checkbox element is clicked.
271
222
272
-
It's also possible to add inline error messages. If you add attribute `data-validation-error-msg` to an element the value of
273
-
that attribute will be displayed instead of the error dialog that the validation function refers to.
223
+
## Localization
274
224
275
-
## Input length restriction
276
-
```html
277
-
<p>
278
-
History (<spanid="maxlength">50</span> characters left)
279
-
<textarearows="3"id="area"></textarea>
280
-
</p>
281
-
<scripttype="text/javascript">
282
-
$('#area').restrictLength( $('#maxlength') );
283
-
</script>
284
-
```
225
+
This plugin comes with translations for English, German, French Spanish and Swedish. You can also choose to override the error
226
+
dialogs yourself. Here you can read more about [localization](http://formvalidator.net/#localization)
285
227
286
228
## Program Flow
287
229
Form submit() event is bound to jQ func **validateForm()** when the form is submitted, it calls
@@ -294,15 +236,35 @@ it calls jQ func **$.formUtils.validateInput** to validate the single input when
294
236
295
237
## Changelog
296
238
297
-
#### 2.2.0 (unreleased)
239
+
240
+
#### 2.2.43
241
+
- Fixed min/max parse error in HTML5 module
242
+
- Now also supports Twitter bootstraps horizontal forms
243
+
- This plugin now also distributes a default CSS theme including success/fail icons (used on formvalidator.net)
244
+
- Email validation now won't fail if email begins with a number
245
+
- This plugin now comes with error dialogs translated to English, French, German, Spanish and English.
246
+
- New validator `letternumeric`. Validates that input consists out of any type of letter (not only alphanumeric) and/or numbers
247
+
- You can now validate image dimension and ratio
248
+
- ... and a bunch of other smaller bug fixes and improvements.
249
+
250
+
#### 2.2.0
298
251
* Now possible to define an error message for each validation rule on a certain input (issue #113)
299
252
* This plugin now serves as a html5 fallback. You can now use the native attributes to declare which type
300
253
of validation that should be applied.
301
254
* Use a template for error messages when having errorMessagePosition set to top
255
+
* Added validation of credit card number and CVV to the security module
302
256
* Event onElementValidate added
303
257
* Use the attribute data-validation-confirm to declare which input that should be confirmed when using validation=confirmation (issue #112)
304
258
* Validation "required" now supports inputs of type radio
305
-
259
+
* $.validateForm is now deprecated, use $.isValid instead
260
+
* Possible to check if form is valid programmatically without showing error messages
261
+
* Select elements can now be validated server-side
262
+
* Cleaned up dialog messages
263
+
* Various IE8 fixes
264
+
* Possible to send along parameters to the server when using server side validation
265
+
* Now possible to set your own parameter name when using server side validation
266
+
* Improved/simplified URL validation
267
+
* ... and a whole lot more small improvements
306
268
307
269
#### 2.1.47
308
270
* Incorrect error-styling when using datepicker or suggestions is now fixed
@@ -342,7 +304,7 @@ calling $.validate()
342
304
the $.validationSetup but it's considered deprecated.
Copy file name to clipboardExpand all lines: bower.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
{
2
2
"name": "jQuery-Form-Validator",
3
-
"version": "2.1.47",
3
+
"version": "2.2.43",
4
4
"homepage": "http://formvalidator.net/",
5
5
"authors": [
6
6
"victorjonsson"
7
7
],
8
8
"description": "With this feature rich jQuery plugin it becomes easy to validate user input while keeping your HTML markup clean from javascript code. Even though this plugin has a wide range of validation functions it's designed to require as little bandwidth as possible. This is achieved by grouping together validation functions in \"modules\", making it possible for the programmer to load only those functions that's needed to validate a particular form.",
0 commit comments