JSFiddle - React, Tailwind, and code Playground
HTML
<a href="#">Link</a>
JavaScript
$("a").click(function() {
alert($("a").data("events").click[0].handler);
});
$.each($("a").data("events"), function(i, e) {
$.each(e, function(j, h) {
alert('Event: ' + i + '\nHandler:\n' + h.handler);
});
});