JSFiddle - React, Tailwind, and code Playground

by Murlidhar Chaugule

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

function doSomething() {
    var date1 = $('#datepicker').datepicker('getDate');
    var day = date1.getDay();
    if (day == 6) {
        //this is saturday do you code here.
        alert("Saturday");
    }
}

$( "#datepicker" ).datepicker({
    onSelect: doSomething
});