-1

How do I capture an event for ANY element in jQuery? Obviously $("*").click() doesn't work. Is there some sort of selector for any element that is clicked, etc.?

Someone
  • 322
  • 1
  • 2
  • 12

1 Answers1

1

Try with

$(document).on('click', function(){})

$("body").on('click', function(){})
Murali Murugesan
  • 21,923
  • 17
  • 67
  • 118