/ON in jQuery
$( "#dataTable tbody tr" ).on( "click", function() {
console.log( $( this ).text() );
});
Tomas Maillo
$( "#dataTable tbody tr" ).on( "click", function() {
console.log( $( this ).text() );
});
$( "#target" ).click(function() {
alert( "Handler for .click() called." );
});
$(document).on("click","#test-element",function() {});
$('button').on('click', function() {
alert('button was clicked!');
});
function notify () {
alert("clicked" );
}
$("button").on("click", notify );
$('.elementClass').click(function() { // code
});