jQuery.Model.prototype.attrs  function     

Gets or sets a list of attributes. Each attribute is set with attr.

recipe.attrs({
  name: "ice water",
  instructions : "put water in a glass"
})

This can be used nicely with jquery.model.events.

model.attrs(attributes) -> Object
{optional:Object}

if present, the list of attributes to send

{Object}

the current attributes of the model

© Jupiter IT - JavaScriptMVC Training and Support