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