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

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -