JSFiddle - React, Tailwind, and code Playground

HTML

<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
                          $("button").click(function(){
                                  $("h2").html("<p class='test'>click me</p>")
                          });   


                          $(".test").live('click', function(){
                          alert()
                          });
       });
</script>
</head>

<body>
<h2></h2>
<button>generate new element</button>
</body>
</html>