JSFiddle - React, Tailwind, and code Playground

by tadfisher

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/base/jquery-ui.css">
<input id="date" type="text">

JavaScript

$("#date").datepicker({
    minDate: '+0',
    maxDate: '+5',
    beforeShowDay: function(date) {
        if (date.getDate() % 2) {
            return [true];
        }
        return [false];
    }
});