JSFiddle - React, Tailwind, and code Playground

by manusvs650

HTML

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.12/jquery-ui.min.js"></script>
<link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.12/themes/redmond/jquery-ui.css" rel="stylesheet" />

<div id="dialog-modal" title="Basic modal dialog" style="display: none;">
    <p>Adding the modal overlay screen makes the dialog look more prominent because it dims out the page content.</p>
    
    <div id="dialog-modal-2" title="Basic modal dialog" style="display: none;">
    <p>Second modal dialog</p>
        
    </div>
    <a href="#" id="launch-second">Open second</a>
</div>

fqdqfqqsdqsdqsdqsd
dqsdqsdqsdqs<br/>
<a href="#" id="launch">Open</a>

JavaScript

$(function() {
    $("#launch").click(function() {
        $("#dialog-modal").dialog({
            height: 300,
            modal: true
        });
        return false;
    });
    $("#launch-second").click(function() {
        $("#dialog-modal-2").dialog({
            height: 140,
            modal: true
        });
        return false;
    });
});