Skip to content
thedersen edited this page Dec 26, 2011 · 2 revisions
var SomeModel = Backbone.Model.extend({
  validation: {
    age: {
	  range: [1, 10]
	}
  }
});
  • number equal to first value is valid
  • number lower than first value is invalid
  • number in range is valid
  • number higher than last value is invalid
  • number equal to last value is valid
Clone this wiki locally