Answers for "jquery add event listener to button"

44

jquery click function

$( "#target" ).click(function() {
  alert( "Handler for .click() called." );
});
Posted by: Guest on February-24-2020
6

jquery addeventlistener

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

Code answers related to "jquery add event listener to button"

Code answers related to "Javascript"

Browse Popular Code Answers by Language