JSFiddle - React, Tailwind, and code Playground
HTML
<fieldset>
<legend>$(document).on("click", "toString", handler)</legend>
<ol id="log"></ol>
</fieldset>
CSS
html { font-family: sans-serif; }
legend { font-family: monospace; }
JavaScript
var $log = jQuery("#log");
jQuery( document ).on( "click", "toString", function() {
$log.append( "<li>" + this.nodeName + "</li>" );
}).find("#log").trigger("click");