JSFiddle - React, Tailwind, and code Playground

HTML

<div id="poo">Hello There.</div>

JavaScript

$('#poo').click(function()
{
      alert('You clicked'); 
});

$.each($('body').find("*").data("events"), function(i, event) {
    $.each(event, function(j, h) {
        if(j = 'click')
        {
            //Do stuff to $(this)
            alert(j);
            alert(h.handler); //Gets the actual handler for each event
        }
    });
});