Using .on() you can define your function once, and it will execute for any dynamically added elements.
.on()
for example
$('#staticDiv').on('click', 'yourSelector', function() { //do something });
2.1m questions
2.1m answers
60 comments
57.0k users