Answers for "add event listener jquerty"

1

jquery bind click

$( "#foo" ).bind( "click", function() {
  alert( "User clicked on 'foo.'" );
});
Posted by: Guest on April-27-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