Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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());
});
 
PREVIOUS NEXT
Tagged: #jquery #listen #click #class #created
ADD COMMENT
Topic
Name
4+3 =