document on click

75

document on click -

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

jquery addeventlistener -

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

Comments

Submit
0 Comments