$(document).on("click","#test-element",function() { alert("click"); });

document on click

$( "#dataTable tbody tr" ).on( "click", function() { console.log( $( this ).text() ); });

jquery addeventlistener

$(document).on("click","#test-element",function() {});

jquery $(document.on click