JSFiddle - React, Tailwind, and code Playground

by TJ VanToll

HTML

<link rel="stylesheet" href="http://code.jquery.com/ui/jquery-ui-git.css">
<script src="http://code.jquery.com/ui/jquery-ui-git.js"></script>
<input type="text" id="datepicker">

JavaScript

$( "#datepicker" ).datepicker({
    onClose: function() {
        $( "#datepicker" ).datepicker( "setDate", new Date() );
    }
});