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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:30:43+00:00 2026-05-31T02:30:43+00:00

When I open a datepicker like that: $("#checkindate,#checkoutdate").datepicker({ onClose: { //I’d like to disable

  • 0

When I open a datepicker like that:

$("#checkindate,#checkoutdate").datepicker({
    onClose: {
       //I'd like to disable the closing
    }
);

I’d like to prevent the closing of the datepicker dialog depending on a condition. The ideal would be that return false would stop this event.

I tried modifying the source code and there is no trivial solution.

What I want to do is to be able to select the checkout date without reopening another dialog.

Any idea?

  • 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-31T02:30:44+00:00Added an answer on May 31, 2026 at 2:30 am

    I don’t think it’s possible to pick multiple dates from one datepicker. You probably will need to do something like their date range demo:
    http://jqueryui.com/demos/datepicker/#date-range

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

Sidebar

Related Questions

When I first open my window that uses the wpf toolkit datepicker it has
I like that jQueryUI datepicker is customizable enough to allow for a button to
I am displaying a jQuery UI dialog window that contains a jQuery UI datepicker
Some open source libraries have tendency to re implement basic structures like string, list,
How do I make the jQuery Datepicker open up by a user defined button?
I'm trying to get the date from a datepicker on a dialog. But it's
I have a dialog, and I have a datepicker field on the dialog. When
I'm looking for a datepicker control (HTML + JavaScript / Flex) that allows selecting
I want to have the JQuery Datepicker open when the user clicks on an
I use the jQuery UI Datepicker plugin and I found that if the plugin

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.