Home » Backbone.js model.validationError()

Backbone.js model.validationError()

by Online Tutorials Library

Backbone.js model.validationError ()

The Backbone.js validationError model returns values by using validate() method. It displays validation error in two cases :

  1. In the case of failure of validation.
  2. When an invalid event is triggered.

Syntax:

Let’s take an example.

See this example:

You may also like