Answers for "jQuery onclick not working"

1

jQuery onclick not working

$(document).on( 'click', '.classname', function () { 
alert('clicked');
});

**** Another Method ****
// where #wrapper is a static element in which you add the dynamic links.
$( '#wrapper' ).on( 'click', 'a', function () { alert('clicked'); });
Posted by: Guest on September-04-2021
0

jquery click not working

$(document).ready(function() {
  $("#clicker").click(function () {
    alert("Hello!");
    $(".hide_div").hide();
  });
});
Posted by: Guest on February-06-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language