JSFiddle - React, Tailwind, and code Playground

by Znuff

HTML

<div id="attach-me">

</div>

JavaScript

jQuery("#attach-me").delegate('a', 'click', function(e) {
	alert('you clicked me');
	e.preventDefault();
});

var el = '<a href="https://google.com">Google</a>';

jQuery("#attach-me").append(el);