JSFiddle - React, Tailwind, and code Playground
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(
{
numberOfMonths: 2,
changeMonth: false,
changeYear: true,
stepMonths: 1,
firstDay: 1,
beforeShow: function(input, inst) {
inst.drawMonth = 1; //change first draw month
alert(inst.drawMonth); //changed but no effect
}
}
);