JSFiddle - React, Tailwind, and code Playground
HTML
<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
<input type="text" id="txtFromDate" />
JavaScript
var startDate = new Date(),
noOfDaysToAdd = 10,
count = 1;
while(count <= noOfDaysToAdd){
startDate.setDate(startDate.getDate() + 1);
if(startDate.getDay() != 0 && startDate.getDay() != 6){
count++;
}
}
$('#txtFromDate').datepicker({
minDate: startDate,
beforeShowDay: $.datepicker.noWeekends,
changeMonth: true,
changeYear: true
});