Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
nicolasMLV
· 10y ago · 0 comments
You can use event delegation for button handling : `$(document).on('click', '.button-list', my_function);`
https://learn.jquery.com/events/event-delegation/
Comments
[–]
tdubbs
10y ago
Thanks for posting this. It's sad how few people seem to know about event delegation...