JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://code.jquery.com/ui/1.11.3/jquery-ui.min.js"></script>
<link rel="stylesheet" href="https://code.jquery.com/ui/1.11.4/themes/trontastic/jquery-ui.css">
<label>Date: <input name='date' /></label>
<input type='hidden' id='actualDate' />
JavaScript
$("input[name='date']").datepicker({
altFormat: "yy-mm-dd",
altField: "#actualDate"
});
$("input[name='date']").change(function(){
window.alert("The current chosen date is: "+$("#actualDate").val());
});