JSFiddle - React, Tailwind, and code Playground
by ivos
HTML
<img src='http://eastafricanbooking.com/application/layouts/scripts/phpholidays_default/images/calendar.png' id="datepickerImage" />
<div id="datepicker"></div>
JavaScript
$(document).ready(function() {
$("#datepicker").datepicker({
changeMonth: true,
changeYear: true,
})
//.hide()
.click(function() {
$(this).hide();
});
$("#datepickerImage").click(function() {
$("#datepicker").show();
});
});