JSFiddle - React, Tailwind, and code Playground

HTML

<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
 <div id="dialog-container">
        <p>
            <span style="float: left;">myLabel</span>
            <input type="text" id="myInput" />
        </p>
    </div>

JavaScript

$(function () {
            $('#dialog-container').dialog({
                buttons: [{
                    text: 'Crash',
                    click: function () {
                        $('#myInput').attr("title", '');
                        $('#myInput').hide();
                    }
                }]
            });
        });