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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T04:13:14+00:00 2026-05-21T04:13:14+00:00

I have one index.html page and on this page I have three controls; one

  • 0

I have one index.html page and on this page I have three controls;

  • one is for
    source
  • second for destination
  • third is for date/time.

Now I have source-destination like A-B then in calender control there is only certain day of certain month is only available .

For example if London-France is only available on only Monday from April to December means in calender only Monday is enable and all other date are disable.

I have lots of this types of source and destination and for all those source and destination this date and day is different ..

How can I do this using JavaScript?

  • 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-21T04:13:14+00:00Added an answer on May 21, 2026 at 4:13 am

    The general process would be to create an function to update the calendar picker you use. The function would check the current value of the source and destination and lookup the available dates. You can create an array of objects each object having a source, destination, valid and daterange variables. Create one object for each possible combinations. Loop through the object and update the calendar picker based on the valid dateranges.

    Once the function is done hook it up to the change event for both the source and destination picker (I assume a select control, but if not, hook it into whatever control you use).

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

Sidebar

Related Questions

I have Javascript function defined in the main index.html file. One part of this
I have a main page index.html. This main page is the enterance to the
In my home page template Index.html.twig I have one navigation bar which i only
I have two html pages one index.html and groups.html each page as ul >
Ok, I have page one(index), fully functional and working fine as is with all
I have a composite index on three column in one of my table. It
i have a string like this one: $string = some text http://dvz.local/index/index/regionId/28 http://stuff.kiev.ua/roadmap_page.php http://192.168.3.192/roadmap_page.php
I have been tearing my hair with this one for a while. index.php: $(document).ready(function(){
My jQuery Mobile app consists of a single index.html page and contains only one
Iam making an app which has one index.php file. I also have these other

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.