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 8038559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:16:29+00:00 2026-06-05T03:16:29+00:00

I am using Keith Wood’s great jQuery Datepicker plugin I am using the datepicker

  • 0

I am using Keith Wood’s great jQuery Datepicker plugin

I am using the datepicker in an admin system to show admin what dates have been booked for a venue.

I have a list of dates (pulled from a database) that are used to display these booked dates on the datepicker. But should admin want to change any of these dates and make the date available, the calendar doesn’t allow for me to ‘unselect’ the already selected date.

this is a scaled down version of the code, but the problem still exists, this code shows the dates of jun 26 & jun 27 as booked, but I cant select them to ‘un-book’ them.

 <script type="text/javascript">

    var bookedDaysList = [[6, 26], [6, 27]];

                function bookedDays(date, inMonth) { 
                    if (inMonth) {
                        for (i = 0; i < bookedDaysList.length; i++) {
                            if (date.getMonth() + 1 == bookedDaysList[i][0] &&
                                    date.getDate() == bookedDaysList[i][1]) {
                                return {dateClass: 'datepick-selected',selectable: true}; 
                            } 
                        } 
                    } 
                    return {}; 
                }

                /* create datepicker */

                jQuery(document).ready(function () {

                    jQuery('#show-dates').datepick({
                        dateFormat: 'dd-mm-yy',
                        altFormat: '[m,d]',
                        onDate: bookedDays,
                        buttonImage: 'css/images/datepicker.gif',
                        buttonImageOnly: true,
                        monthsToShow: 3,
                        multiSelect: 999,
                        showOn: 'both'
                    });
                });


</script>
  • 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-06-05T03:16:31+00:00Added an answer on June 5, 2026 at 3:16 am

    After some research, I’ve found this datepicker that does the job…

    http://multidatespickr.sourceforge.net/

    I am suprised that the Keith Wood plugin doesn’t cater for this or have I missed this?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created a SVG rect using keith-wood's jQuery SVG plugin. Here is the code:
I am using the jQuery datepicker( http://keith-wood.name/datepick.html ) and I would like to set
I am using the jQuery Datepicker( http://keith-wood.name/datepick.html ). I am trying to let the
I'm using this jQuery countdown plugin: http://keith-wood.name/countdown.html I'm trying this to set the countdown
i am using a keith-wood jquery countdown timer plugin on my website ( http://keith-wood.name/countdown.html
I'm using the jQuery Datepicker ( http://keith-wood.name/datepick.html ) with custom date range. My problem
I'm using Keith Wood's jQuery datepicker http://keith-wood.name/datepick.html to make a calendar that the user
http://keith-wood.name/countdown.html I am using this jQuery plugin. $('#noDays').countdown({ until: enddate_final, format: 'HMS', compact: true,
I'm using Keith Wood jQuery Calendars Datepicker (not his jQuery Datepicker ). In one
For the past few years I have been using Gary Keith's browscap file to

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.