Exclude weekends on jQuery datepicker

$('yourSelector').datepicker({
    minDate: 0, // your min date
    maxDate: '+1w', // one week will always be 5 business day - not sure if you are including current day
    beforeShowDay: $.datepicker.noWeekends // disable weekends
});

Comments

Popular posts from this blog

Set limit wp_nav_menu

JavaScript calculate percentage when user scroll web page

Calculate percentage of a specific element has been scrolled into visible on the screen