Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 841583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:49:11+00:00 2026-05-15T05:49:11+00:00

How to disable a list of holidays using jquery date picker?

  • 0

How to disable a list of holidays using jquery date picker?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T05:49:12+00:00Added an answer on May 15, 2026 at 5:49 am
    var disabledDates = ['08/30/2010', '05/30/2010', '02/14/2011']; 
    
    function noWeekendsOrHolidays(date) { 
            var noWeekend = $.datepicker.noWeekends(date); 
            if (noWeekend[0]) { 
                return disableDays(date); 
            } else { 
                return noWeekend; 
            } 
    } 
    
    function disableDays(date) { 
        for (var i = 0; i < disabledDates.length; i++) { 
            if (new Date(disabledDates[i]).toString() == date.toString()) {              
                return [false]; 
            } 
        } 
        return [true]; 
    }  
    
    $(.selector).datepicker({minDate: new Date(),beforeShowDay: noWeekendsOrHolidays, changeYear: true ,changeMonth: true});   
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to disable a checkbox in the checkbox list using jQuery . But
Im using jQuery to disable an option in a select drop down list. I
Im using jQuery UI Selectable for list items in Ordered list, But i just
If I apply buttonset to a list of checkboxes using JQuery UI, how do
I'm using JQuery UI's Autocomplete to load a list of users into a custom
I am using jQuery to disable a dropdownlist. It's very strange -- when I
Like it asks in the title, can I disable related list hover links on
I want to disable the button that is contained in a data list row.
how can i disable the list box Html.ListBox(Organization, Model.OrgListbox as MultiSelectList)
Is it possible to disable edit item in a Sharepoint List when a custom

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.