Skip to content

Commit 8a84709

Browse files
committed
documenationen added
1 parent bde28e5 commit 8a84709

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

README.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ particular form.
1818
<form action="" onsubmit="return $(this).validate();">
1919
<p>
2020
Name (4 characters minimum):
21-
<input name="user" data-validation="validate_min_length length4" />
21+
<input name="user" data-validation="min_length length4" />
2222
</p>
2323
<p>
2424
Birthdate (yyyy-mm-dd):
25-
<input name="birth" data-validation="validate_birthdate" />
25+
<input name="birth" data-validation="birthdate" />
2626
</p>
2727
<p>
2828
Website:
29-
<input name="website" data-validation="validate_url" />
29+
<input name="website" data-validation="url" />
3030
</p>
3131
<p>
3232
<input type="submit" />
@@ -35,6 +35,15 @@ particular form.
3535
...
3636
```
3737

38+
### Moving up to version 2.0
39+
40+
So what has changed since version 1.x?
41+
42+
* A whole bunch of validation functions have been added (see below)
43+
* A modular design have been introduced, which means that some validation functions is default and others is part of a module
44+
* You no longer need to prefix the validation rules with "validate_"
45+
46+
3847
### Default validators (no module needed)
3948
* **validate_url**
4049
* **validate_email**
@@ -363,4 +372,4 @@ $_SESSION['captcha'] = array( mt_rand(0,9), mt_rand(1, 9) );
363372
[Matt Clements](https://github.com/mattclements) (contributor)<br />
364373
[dfcplc](https://github.com/dfcplc) (contributor)<br />
365374
[Darren Mason](http://www.mypocket-technologies.com) (Password strength meter)<br />
366-
[Scott Gonzales](http://projects.scottsplayground.com/iri/) (URL regexp)
375+
[Scott Gonzales](http://projects.scottsplayground.com/iri/) (URL regexp)

0 commit comments

Comments
 (0)