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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:13:18+00:00 2026-06-13T23:13:18+00:00

once more I am writing a jQuery script for my hotel asp.net MVC 3

  • 0

once more
I am writing a jQuery script for my hotel asp.net MVC 3 application.
I would like to make drop down calendar in jQuery so that already reserved dates for particular room are not clickable.
That means that first I have to read taken dates from database and then, somehow, read it in jQuery script before showing appropriate calendar for a room reservation date.

Do I need to learn jQuery for all this, if not, how to do it? Is Ajax needed for database retrieval of appointed dates?
Can you please help me?

thank you very much

P.S. If I need to learn jQuery (and/or Ajax), can you give me some quality resource hints? Thanks

  • 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-13T23:13:18+00:00Added an answer on June 13, 2026 at 11:13 pm

    Found this from google
    jQuery UI DatePicker: Disable Specified Days

    You can wrap this code within a JS function and pass the date list to it (something like)

        function ShowDatePicker(dateList)
    {
    var disabledDays = dateList;
    
    /* utility functions */
    function nationalDays(date) {
      var m = date.getMonth(), d = date.getDate(), y = date.getFullYear();
      //console.log('Checking (raw): ' + m + '-' + d + '-' + y);
      for (i = 0; i < disabledDays.length; i++) {
        if($.inArray((m+1) + '-' + d + '-' + y,disabledDays) != -1 || new Date() > date) {
          //console.log('bad:  ' + (m+1) + '-' + d + '-' + y + ' / ' + disabledDays[i]);
          return [false];
        }
      }
      //console.log('good:  ' + (m+1) + '-' + d + '-' + y);
      return [true];
    }
    function noWeekendsOrHolidays(date) {
      var noWeekend = jQuery.datepicker.noWeekends(date);
      return noWeekend[0] ? nationalDays(date) : noWeekend;
    }
    
    /* create datepicker */
    jQuery(document).ready(function() {
      jQuery('#date').datepicker({
        minDate: new Date(2010, 0, 1),
        maxDate: new Date(2010, 5, 31),
        dateFormat: 'DD, MM, d, yy',
        constrainInput: true,
        beforeShowDay: noWeekendsOrHolidays
      });
    });
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to append append an item more than once. e.g listA =
I thought that calling BeginInvoke more than once on the same delegate instance would
modified once more. After removing the recursions, and writing a code for infix expression
we are currently developing a couple of custom asp.net server controls. Now we'd like
I'm writing a greasemonkey script and want to call the start function only once
Buried in mySQL syntax and query structure problems once more. I'm currently doing this
First of all, pardon me for bringing up this hugely discussed issue once more
When a Thread is finished, you cannot run it once more, using start() method:
Page_Load Calls more than once (4 times in my case) in FireFox but in
I was told more than once that Delphi handles dynamic classes better than static.Thereby

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.