var CreditCardView = View.extend({ template: $("#creditcard_template").html(), events: { }, initialize: function(opt){ this.parent = opt.parent this.parent.$(".address").html(this.template) }, populate: function(data){ this.parent.$(".address input").val("") Object.keys(data).forEach(function(key){ this.parent$(".address [name=" + key + "]").val(data[key]) }.bind(this)) }, deserialize: function(){ }, serialize: function(){ }, })