JSFiddle - React, Tailwind, and code Playground
by vladkras
HTML
<button class="newIdea_Button">click</button>
JavaScript
$(document).ready(function(){
$(".newIdea_Button").click(function(){
$(document.body).append("<form id='new_idea_form'>...some buttons here, one with the <button id='cancel_idea_input'>cancel</button></form>");
$("#cancel_idea_input").click(function(e){
e.preventDefault();
$('#new_idea_form').remove();
});
});
});