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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:00:16+00:00 2026-06-14T04:00:16+00:00

Similarly to this post , in which an answer provided this jsfiddle , I’d

  • 0

Similarly to this post, in which an answer provided this jsfiddle, I’d like to highlight the entire week of my bootstrap datepicker, not jQuery UI.

My code is currently this:

$('.datepicker-days tbody tr').live('mousemove', function () {
    $(this).find('td day').addClass('highlight');
});
$('.datepicker-days tbody tr').live('mouseleave', function () {
    $(this).find('td day').removeClass('highlight');
});

“Highlight” is not the right class to be adding and removing, as far as I can tell.

The selector in the datepicker CSS file for hovered cells is:

.datepicker td.day:hover { background: #eeeeee; cursor: pointer; }

Is there a way to add “hover” as a “class”?

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

    You can add any class you want. If you want the same css as the hover rule shown just add a new rule for your class and make it specific enough that other css rules won’t out rank it. You can inspect all rules that apply to any element in a browser console

    Example css:

     .datepicker td.highlight { background: #eeeeee; cursor: pointer; }
    

    Using mousemove is not really appropriate, change to mouseenter

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

Sidebar

Related Questions

I love challenges like this, I'll hopefully submit my answer soon. Which player has
I did post this on serverfault, but not getting any views or responses. I've
I hope this post is not a duplicate one. Let me explain: I have
I am doing a query that converts rows to columns similar to this post
This post is very similar to my previous one, but the data structures are
I was looking at this post: https://stackoverflow.com/a/2262200 and I have a very similar setup
Currently I am using a post-build event command line similar to this one: xcopy
Django code samples involving post data often shows code similar to this: if request.method
Similar to this R question , I'd like to apply a function to each
[FYI: I've got the answer, and I'm in process of writing the solution. This

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.