Answers for "instead of $ use jqueryfor click event syntax"

12

jquery click event

$( "#other" ).click(function() {
  $( "#target" ).click();
});
Posted by: Guest on June-03-2020
0

any click event jquery

$(document).click(function(event){
  $(event.target).closest(".clickable").each(function(){
    // "this" is your "clickable" clicked
  });
});
Posted by: Guest on August-29-2021

Code answers related to "instead of $ use jqueryfor click event syntax"

Code answers related to "Javascript"

Browse Popular Code Answers by Language