javascript click on dynamicly added div code example
Example: document on click dynamic element
$(document).on('click', '.class', function() {
// do something
});
$(document).on('click', '.class', function() {
// do something
});