Backbone.js model.validationError ()
The Backbone.js validationError model returns values by using validate() method. It displays validation error in two cases :
- In the case of failure of validation.
- When an invalid event is triggered.
Syntax:
Let's take an example.
See this example:
|