JSFiddle - React, Tailwind, and code Playground

by TJ VanToll

HTML

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

<p><a href="http://bugs.jqueryui.com/ticket/8556">jQuery UI #8556</a>: Select a date from the first datepicker.</p>

<input type="text" id="one">
<input type="text" id="two">

JavaScript

$( "#one" ).datepicker({
    onSelect: function () {
        $( "#two" ).datepicker( "show" );
    }
});

$( "#two" ).datepicker();