BackboneJS - Model isValid - Backbone.js

Description

It checks the model state by using the validate() method and also checks validations for each attribute.

Syntax

Example

Output

Let us carry out the following steps to see how the above code works −

  • Save the above code in the isvalid.htm file.
  • Open this HTML file in a browser.

output

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Backbone.js Topics