Skip to content

Commit 193723f

Browse files
petrparolekf3l1x
authored andcommitted
added example of re-validating form in docs
1 parent 32e1773 commit 193723f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.docs/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ Option | Description
9494

9595
You can edit/replace methods `LiveForm.addError` (shows error message), `LiveForm.removeError` (hides error message), `LiveForm.showValid` (show message if input is correctly filled), `LiveForm.setupHandlers` (sets handlers up for inputs, like focus, blur, onkeyup). These methods can be altered to support some JS framework, ie. jQuery.
9696

97+
If you need re-validate form e.g. fiiling form from AJAX request write code sometibng like that:
98+
99+
```javascript
100+
Nette.validateControl($('#exampleForm-foo'));
101+
```
102+
97103
### Authors
98104

99105
This script is based on work of **Robert Pösel**, **zakrava**, **Radek Ježdík**, **MartyIX** and **David Grudl**. Thank you guys.

0 commit comments

Comments
 (0)