1$( "#target" ).click(function() {
2 alert( "Handler for .click() called." );
3});
1$(document).on("click", ".onClass", function () {
2 //your code
3 var element = $(this); // to get clicked element
4});
1$( "#dataTable tbody tr" ).on( "click", function() {
2 console.log( $( this ).text() );
3});
4