JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" id='calendar'></input>
JavaScript
$(document).ready(function () {
$("#calendar").datepicker();
// some time later. . .
$('#calendar').datepicker
({
onSelect: function()
{
alert('array');
}
});
$('#calendar').bind('datepickeronSelect', function(){alert('bind');});
$('#calendar').bind('datepicker.onSelect', function(){alert('bndDot');});
//$('#calendar').datepicker('option', 'onSelect', function (){alert('option');});
});