Skip to content
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
Clone this wiki locally