jquery click event on dynamically generated elements code example
Example: document on click dynamic element
$(document).on('click', '.class', function() {
// do something
});
$(document).on('click', '.class', function() {
// do something
});