Browse Source

Add ```isValid()``` method to the _API_ section

nghuuphuoc 12 years ago
parent
commit
7831e533d2
2 changed files with 11 additions and 0 deletions
  1. 4 0
      CHANGELOG.md
  2. 7 0
      README.md

+ 4 - 0
CHANGELOG.md

@@ -21,6 +21,10 @@ __Fixes__:
 * [#82, #84: The error messages aren't shown if the form field doesn't have label](https://github.com/nghuuphuoc/bootstrapvalidator/issues/82)
 * [#89: ```submitHandler``` or default submission isn't called after ```remote``` validation completes](https://github.com/nghuuphuoc/bootstrapvalidator/issues/89)
 
+__Document__:
+
+* Add ```isValid()``` method to the _API_ section
+
 ## v0.3.0
 
 Released on 2014-03-10

+ 7 - 0
README.md

@@ -325,6 +325,12 @@ var validator = $(form).bootstrapValidator(options);
 validator.validate();
 ```
 
+### ```isValid```
+
+```isValid()```: Returns ```true``` if all form fields are valid. Otherwise, returns ```false```.
+
+Ensure that the ```validate``` method is already called after calling this one.
+
 ### ```resetForm```
 
 ```resetForm(resetFormData)```: Reset form. It hides all error elements and feedback icons. All the fields are marked as not validated yet.
@@ -441,6 +447,7 @@ Big thanks to the contributors:
 * [@emilchristensen](https://github.com/emilchristensen)
 * [@khangvm53](https://github.com/khangvm53)
 * [@kristian-puccio](https://github.com/kristian-puccio)
+* [@ikanedo](https://github.com/ikanedo)
 * [@iplus](https://github.com/iplus)
 * [@vaz](https://github.com/vaz)
 * ... might be you! Let's [fork](https://github.com/nghuuphuoc/bootstrapvalidator/fork) and pull a request!