JSFiddle - React, Tailwind, and code Playground
by simevidas
HTML
<div></div>
JavaScript
var div = $('div')[0];
var handler = function () {/* THIS IS THE HANDLER */};
$.fn.on ? $(div).on('click', handler) : $(div).click(handler);
console.log( 'jQuery version: ' + $().jquery );
console.log( '' + $._data(div).events.click[0].handler );
/*
This code shows how to get a reference to a jQuery-bound event handler.
Tested in jQuery 1.6.4+. (Open the console, set the jQuery version in jsFiddle's left panel and hit "Run".)
*/