Answers for "handle button click event using jquery"

55

jquery click function

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

.on click jquery

var myEl = document.getElementById('myelement');

myEl.addEventListener('click', function() {
    alert('Hello world');
}, false);

myEl.addEventListener('click', function() {
    alert('Hello world again!!!');
}, false);
Posted by: Guest on February-23-2022

Code answers related to "handle button click event using jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language