Answers for "jquery click not working"

PHP
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 "jquery click not working"

Browse Popular Code Answers by Language