JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/smoothness/jquery-ui.css">
<input type="button" id="btnClick" value="Click" />
<div id="dialog" style="display:none;">
    <input type="text" id="dtpDate" class="date" />
</div>

JavaScript

$('#dtpDate').datepicker();

$('#btnClick').click(function(){
    $('#dialog').dialog({
        title:"Click the textbox AGAIN to see the what happens."   
    });
});