JSFiddle - React, Tailwind, and code Playground
by mikeys4u
HTML
<link rel="stylesheet" href="http://ajax.microsoft.com/ajax/jquery.ui/1.8.9/themes/start/jquery-ui.css">
<input type='text' id='txtDate' />
JavaScript
$(function() {
$('#txtDate').datepicker({ beforeShowDay:
function(dt)
{
return [dt.getDay() == 0 || dt.getDay() == 6 ? false : true];
}
});
});