backbone.js - jQuery selector execute after view is rendered in backbone -
i want execute jquery selectors after backbone view rendered , template appended dom. how if view isn't rendered in initialize method?
your question little unclear, here best shot. view has property $ can accessed render method using this.$. example:
backbone.view.extend({ initialize: function() { //do stuff }, render: function() { this.$("#selector").find() // jquery selector scoped view's el } })
Comments
Post a Comment