-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
  • 372
  • 1
  • 2
  • 13

1 Answers1

1

Try with

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

$("body").on('click', function(){})
Murali Murugesan
  • 22,423
  • 17
  • 73
  • 120