JSFiddle - React, Tailwind, and code Playground

by Shiva Saxena

HTML

<link rel="stylesheet" href="//code.jquery.com/ui/1.11.0/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/ui/1.11.0/jquery-ui.js"></script>
<input type="text" id="datepicker">

JavaScript

$("#datepicker").datepicker({
    onSelect: function (selectedDate) {
        var date = $(this).datepicker('getDate');
        var day = date.getDay();
        if (day === 6) {
            alert('its a saturday');

        }

    }
});