Skip to content

equalTo validator

thedersen edited this page Dec 26, 2011 · 2 revisions
var SomeModel = Backbone.Model.extend({
  validation: {
    password: {
      required: true
    },
    passwordRepeat: {
      equalTo: 'password'
    }
  }
});
  • value equal to (===) the specified attribute is valid
  • value not equal to (!==) the specified attribute is invalid
  • is case sensitive
Something went wrong with that request. Please try again.