Telnet,
<!DOCTYPE html>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
<style type="text/css">
.ui-widget-content .def .ui-state-default{
background-color: #9ACD32;
background-image: none;
}
.ui-widget-content .def{
opacity: 1;
}
</style>
<script>
$(function() {
$( "#date1" ).datepicker({
defaultDate: "2019-07-14",
dateFormat: "yy-mm-dd",
minDate: "2019-07-14",
maxDate: "+31D",
beforeShowDay : function(date){
var defDate = new Date(this.defaultValue);
defDate.setHours(0,0,0,0);
var day = date.getDay();
var ret = [( !day || day == 2 || day == 4 ),'',''];
if(defDate.getTime() == date.getTime()) ret[1] = "def"
return ret;
}
});
});
</script>
</head>
<body>
Date Picker on input field: <input type="text" id="date1" name="date1" value="2019-07-14"/> <br/>
</body>
</html>