JSFiddle - React, Tailwind, and code Playground

by A B

HTML

<link rel="stylesheet" href="http://stanlemon.net/stylesheet/jquery.jgrowl.css">
<script src="http://stanlemon.net/javascript/jquery.jgrowl.js"></script>
<div id="pop">bye</div>
<div id="dialog-confirm"></div>

JavaScript

$("#pop").click(function(){
    $( "#dialog-confirm" ).dialog( "open" );
    return false;
});

$( "#dialog-confirm" ).dialog({         
    autoOpen: false,
    resizable: false,
    height:200,

    modal: true,
    buttons: {
        "Drop": function() {
            //ajax
            var checkbox = $("#repost").val();

            // $( this ).dialog( "close" );
    $.jGrowl('ACTION SUCCESSFUL!', { 
        life: 1000, 
        beforeClose: function(e,m) {
        $( "#dialog-confirm" ).dialog( "close" );
            }
    });

        },
        Cancel: function() {
            $( this ).dialog( "close" );
        }
    }


});