Remove Weekends from jQuery UI Datepicker

by jquerybyexample

HTML

No Weekends: <input type="text" id="txtFromDate" />

CSS

body {
    font-size:12pt;
    font-family:Calibri;
    padding: 5px;
}
.ui-datepicker-week-end {
    display:none
}

JavaScript

$(document).ready(function () {
    $("#txtFromDate").datepicker();
});