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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:49:01+00:00 2026-05-12T19:49:01+00:00

I want to, when the user selects a date, highlight the following 11 days.

  • 0

I want to, when the user selects a date, highlight the following 11 days. The intention is to show a 12-day range selected depending on whatever day was chosen.

I’ve seen the “date range picker” from http://www.filamentgroup.com/ suggested, but this doesnt really give me the visualization i want, it just lets a user pick a range (from/to) as i understand it.

Any suggestion on how i can realize this?

Cheers

  • 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-12T19:49:01+00:00Added an answer on May 12, 2026 at 7:49 pm

    You can use the beforeShowDay event to give a CSS style for the dates you need to highlight.

    Code:

    $(document).ready(function(){
        var selected = null;
    
        $('#datePicker').datepicker({beforeShowDay: function(date) {
                            if (selected != null && date.getTime() > selected.getTime() &&
                                (date.getTime() - selected.getTime()) < 12*24*3600*1000) {
                                return [true, "highlighted"];
                            }
                            return [true, ""];
                        }});
    
        $("#datePicker").datepicker( 'option' , 'onSelect', function() {
                str = $(this).val().toString();
                selected=$.datepicker.parseDate('mm/dd/yy', str);
                console.log(selected);
                });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have calendar in Qt. I want when user selects date, 14(Qint32) will be
I want it so that when the user selects a date my SQLite database
So often, I want the user to select a start date and a finish
When a user selects a file, I want another file field to appear. It
I want to reset a file upload field when the user selects another option.
I've got a select box where the user selects which elements they want to
I have 2 radio buttons, what I want is if a user selects the
I have a html combo/select. When the user selects a element, I want to
I got a weeknumber from a jquery datepicker, when a user selects a date.
NO JQUERY! I have a drop down in which the user selects a day

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.