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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:55:02+00:00 2026-05-24T08:55:02+00:00

I have the datepicker working and it is fully functional. From the above image

  • 0

I have the datepicker working and it is fully functional.

Datepicker - Week is not highlighted

From the above image it can be seen that the week picker works. However I would like the datepicker to highlight the current week. Which in this example should highlight whole of the start of the week. Which I would like to look like this or similarWhat I would like

How is this done?

Edited
Ideally when the page loads up I would like the current week to be highlighted instead of the user having to select the week themselves. In the example supplied, the day is currently selected but I wish to have the current week automatically selected. Like below

Current Week already selected

  • 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-24T08:55:04+00:00Added an answer on May 24, 2026 at 8:55 am

    The TD that is selected has the class ui-datepicker-current-day, so that might be what you want to find. You can do the highlighting by attaching a click event with the datepicker element, e.g.

    $( "#datepicker" ).datepicker().click(function(event) {
        // highlight the TR
        $(".ui-datepicker-current-day").parent().addClass('highlight');
    
        // highlight the TD > A
        $(".ui-datepicker-current-day").siblings().find('a').addClass('highlight2');
    }); 
    

    And you can define the highlight and highlight2 classes to your heart’s content.

    Note that, the onSelect event does not do the trick, as the calendar is refreshed each time a date is clicked.

    Here is an example: http://jsfiddle.net/9DdfL/2/

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

Sidebar

Related Questions

I have a datepicker that is fully functional and is working whereby you can
I have the jquery includes setup correctly I believe, datepicker is working. However, when
I have a DatePicker working on a View which also has a ViewModel associated
I'm working with a dynamic DOM here, and have called the jQuery UI datepicker
I have a DatePicker and a TimePicker in my app. Can anyone tell me
I have a jQuery datepicker that I want to restrict non work days -
I have this jQuery datepicker code that initially set the minDate of the datepicker.
I have the jQuery datepicker working, but I need to be able to select
i have one jquery ui datepicker working fine. I am now adding a second
I have a custom control (from MS Toolkit - DatePicker). I've made my own

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.