JSFiddle - React, Tailwind, and code Playground
by TJ VanToll
HTML
<link href="http://code.jquery.com/ui/1.8.17/themes/base/jquery-ui.css" rel="stylesheet" />
<script src="http://code.jquery.com/jquery-1.4.2.js"></script>
<script src="http://code.jquery.com/ui/1.8.17/jquery-ui.js"></script>
<input type="text" id="datepicker">
JavaScript
$( "#datepicker" ).datepicker({
onClose: function() {
$( "#datepicker" ).datepicker( "setDate", new Date() );
}
});