Answers for "jquery listen for click on class that was created later"

0

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());
});
Posted by: Guest on May-26-2021

Code answers related to "jquery listen for click on class that was created later"

Code answers related to "Javascript"

Browse Popular Code Answers by Language