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

Commit

Permalink
Improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Zach Leatherman committed Apr 18, 2014
1 parent f5a96bd commit 33e6573
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ In your web page:
```html
<script src="jquery.js"></script>
<script src="dist/validator.js"></script>
<script src="dist/validator.init.js"></script>
<script src="dist/validator.config.js"></script>
<script>
jQuery(function($) {
$( document ).bind( "enhance", function(){
Expand All @@ -23,6 +25,18 @@ jQuery(function($) {
</script>
```

### Required Validation

Add the `required` attribute to your input. Works with `<input type="text">` (et al), `<input type="checkbox">`, `<input type="radio">`, `<select>`, and `<textarea>`.

### Format Validation

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`.

### Custom Messages



## Demo
Check the [demo](http://filamentgroup.github.io/validator/examples/)

Expand Down

0 comments on commit 33e6573

Please sign in to comment.