JSFiddle - React, Tailwind, and code Playground

by Rahul Chaturvedi

HTML

<p>Click this paragraph.</p>

JavaScript

$(document).ready(function(){
  $("p").on("click",function(){
    alert("The paragraph was clicked.");
    $("body").append("<p id='new'>Now click on this paragraph</p>");
  });
 $(document).on("click","#new",function(){
    alert("On really works.");
  });
});