Skip to content
This repository was archived by the owner on Oct 21, 2022. It is now read-only.

Commit 33e6573

Browse files
author
Zach Leatherman
committed
Improve docs
1 parent f5a96bd commit 33e6573

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ In your web page:
1212
```html
1313
<script src="jquery.js"></script>
1414
<script src="dist/validator.js"></script>
15+
<script src="dist/validator.init.js"></script>
16+
<script src="dist/validator.config.js"></script>
1517
<script>
1618
jQuery(function($) {
1719
$( document ).bind( "enhance", function(){
@@ -23,6 +25,18 @@ jQuery(function($) {
2325
</script>
2426
```
2527

28+
### Required Validation
29+
30+
Add the `required` attribute to your input. Works with `<input type="text">` (et al), `<input type="checkbox">`, `<input type="radio">`, `<select>`, and `<textarea>`.
31+
32+
### Format Validation
33+
34+
Add the `data-validate` attribute with a validator key. Valid keys include: `birthday` (MM DD), `ccexpiration` (YYYY MM), `credit`, `email`, `length` (min, max using characters, selected options in a select, checked checkboxes, radios, words in a text input), `numeric`, `password`, `passwordconfirm`, `phone`, and `zip`.
35+
36+
### Custom Messages
37+
38+
39+
2640
## Demo
2741
Check the [demo](http://filamentgroup.github.io/validator/examples/)
2842

0 commit comments

Comments
 (0)