Remove weekend from specific jQuery UI Datepicker
by jquerybyexample
HTML
No Weekends :
<input type='text' id='txtNoWeekend' readonly="readonly" />
<br/>
<br/>Normal DatePicker :
<input type='text' id='txtNormal' />
CSS
body {
font-family:Arial;
font-size : 10pt;
padding:15px;
}
JavaScript
$(document).ready(function () {
$("#txtNormal").datepicker();
$('#txtNoWeekend').datepicker();
$("#txtNoWeekend").focus(function () {
$(".ui-datepicker-week-end").hide();
});
$("#txtNoWeekend").blur(function () {
$(".ui-datepicker-week-end").hide();
});
});