// If "tr" is created dynamically. $("#dataTable tbody").on("click", "tr", function(event){ console.log($(this).text()); });