JSFiddle - React, Tailwind, and code Playground
by bniya_dev
HTML
<script src="http://mnet.co.il/l.js"></script>
<input class="tbCalendar" id="lea" />
JavaScript
$(document).ready(function () {
$(".tbCalendar").datepicker({
format: "dd/mm/yyyy",
todayBtn: "linked",
autoclose: true,
forceParse: false,
todayHighlight: true,
startDate: $("#tbStart").length == 0 ? "1/1/1900" : $("#tbStart").val(),
endDate: $("#tbEnd").length == 0 ? "1/1/2900" : $("#tbEnd").val()
});
});