jquery listen for click on class that was created later code example
Example: jquery listen for click on class that was created later
// If "tr" is created dynamically.
$("#dataTable tbody").on("click", "tr", function(event){
console.log($(this).text());
});