Skip to content

Conversation

@Morialkar
Copy link

I had a table with button in the rows and when the page changed, the bindings were destroyed, so I added a callback that hooks in the updatePageDisplay function to insert the bindings.

@Mottie
Copy link
Collaborator

Mottie commented Jun 13, 2015

It would be better to bind to elements using delegated events instead of rebinding on every page change, e.g.

$( 'tbody' ).on( 'click', 'button', function(){
  // do something when a button is clicked 
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants