JSFiddle - React, Tailwind, and code Playground

HTML

<div id="test"></div>

JavaScript

$.get("/echo/html/", "", function(formToDisplay) {
    $("#test").dialog({
        autoOpen: true,
        modal: true
    }).html("<div class='clickHandle'>Test</div> " + formToDisplay);
});
$(".clickHandle").live("click", function() {
    alert("Content clicked");
});