Answers for "document on click"

1

document on click

$(document).on("click","#test-element",function() {
    alert("click");
});
Posted by: Guest on April-24-2021
6

jquery addeventlistener

$( "#dataTable tbody tr" ).on( "click", function() {
  console.log( $( this ).text() );
});
Posted by: Guest on May-24-2020
2

jquery $(document.on click

$(document).on("click","#test-element",function() {});
Posted by: Guest on May-27-2020

Browse Popular Code Answers by Language