Skip to content

Commit 5504023

Browse files
committed
updated readme...
1 parent 6ebd5ee commit 5504023

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ Read the documentation for the UK module at [http://formvalidator.net/#uk-valida
124124

125125
### Module: brazil *(not yet released...)*
126126
* **brphone***Validate a brazilian telephone number*
127-
* **cep**
127+
* **cep**
128128
* **cpf**
129129

130130
### Module: poland *(not yet released...)*
@@ -258,7 +258,7 @@ dialogs yourself. Here you can read more about [localization](http://formvalidat
258258
- Several improvements made to already existing translations
259259
- "Validation help" no longer puts constraints on input names
260260
- Improved confirmation validation
261-
- Now possible to set `errorMessagePosition` to a callback function
261+
- Config parameter `errorMessagePosition` is now only used to point out where error message should be placed. New configuration parameters is introduced that handles custom positioning of error messages [#226](https://github.com/victorjonsson/jQuery-Form-Validator/issues/226#issuecomment-191233456)
262262
- Now possible to add `data-validation-ignore` to filter out certain characters before validation
263263
- New sanitation method `strip` that removes defined characters
264264
- Now possible to declare attributes not prefixed with data-validation in jsconf module
@@ -272,8 +272,9 @@ dialogs yourself. Here you can read more about [localization](http://formvalidat
272272
- Polish validation module
273273
- Brazilian validation module
274274
- UK validation module now also have validators `uknin` `ukutr`
275+
- Sepa-module that makes it possible to validate sepa, iban and bic.
275276
- New module named "logic" containing the features `data-validation-depends-on` and `data-validation-optional-if-answered`
276-
277+
- The security module now support reCAPTCHA from Google.
277278

278279
#### 2.2.8
279280
- The plugin is now again possible to install via bower.

test/logic.html

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ <h3>data-validation-depends-on</h3>
4141
</div>
4242

4343
<div class="form-group">
44-
<label class="control-label">US state</label>
44+
<label class="control-label">State</label>
4545
<input class="form-control"
4646
type="text"
4747
name="state"
@@ -66,13 +66,23 @@ <h3>data-validation-depends-on</h3>
6666
<h3>data-validation-if-answered</h3>
6767

6868

69+
<div class="form-group">
70+
<label class="control-label">
71+
Home Phone Number &nbsp;
72+
</label>
73+
<input name="homephone" class="form-control"
74+
data-validation="number"
75+
data-validation-optional-if-answered="cellphone, workphone"
76+
/>
77+
</div>
78+
6979
<div class="form-group">
7080
<label class="control-label">
7181
Work Phone Number &nbsp;
7282
</label>
7383
<input name="workphone" class="form-control"
7484
data-validation="number"
75-
data-validation-optional-if-answered="cellphone"
85+
data-validation-optional-if-answered="cellphone, homephone"
7686
/>
7787
</div>
7888

@@ -82,7 +92,7 @@ <h3>data-validation-if-answered</h3>
8292
</label>
8393
<input name="cellphone" class="form-control"
8494
data-validation="number"
85-
data-validation-optional-if-answered="workphone"
95+
data-validation-optional-if-answered="workphone, homephone"
8696
/>
8797
</div>
8898

0 commit comments

Comments
 (0)