I'm writing a sample app using backbone.js.
On update of my model I re-render my view in this fashion
$('.target').html("");
$('.target').append(this.$el.html(this.template(model)))
Once the view is re-rendered after model update [on change event], events attached to the el's children gets lost [doesn't seem to be like jQuery live]. Is this a known issue or am I missing something? Should I try to replace html instead of append? fiddle
$('.target').html(this.$el.html(this.template(model))), which is equivalent to clearing the HTML and appending a new one - Matanya$this.el.html()which missed the wrapper div. But your soln fixed it - Tamil