Paste the code below into a HTML element.

<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css" /><script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script><script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script> <script>var jQ = $.noConflict();
jQ(document).ready(function() {
// adjust this to the actual ID of your datepicker
jQ("#item1_date_1").attr("id","item1_date");
});
var jK = jQ.noConflict();
jK( window ).load(function() {
// 1 = monday, 2 = tuesday, 3 = wednesday, 4 = thursday, 5=friday, 6 = saturday, 7=sunday //
var daysToDisable = [5, 6];
jK("#item1_date").datepicker({ beforeShowDay: disableSpecificWeekDays, minDate: 0 });
function disableSpecificWeekDays(date)
{ var day = date.getDay(); for (i = 0; i < daysToDisable.length; i )
{ if (jK.inArray(day, daysToDisable) != -1)
{ return [false]; } } return [true]; }
});</script>