longbill / jquery-date-range-picker

A jQuery plugin that allows user to select a date range
MIT License
1.12k stars 579 forks source link

Unique Class for the day the mouse is currently on after first selection #342

Open Arwany opened 7 years ago

Arwany commented 7 years ago

Hi,

I noticed when the mouse moves (after selecting the first date) that every cell it visit has these classes: day toMonth valid tmp hovering

Can I add a special class ONLY for the day that the mouse is currently on, and if it leaves this day, this class gets removed?

Example:

I select 1st of May, then moves to select 10th of may (this is my goal as user), but I am currently on the 7th of may. Can this 7th have a unique class until it leaves to the 8th of may... etc?

A snippet of code would be very helpful. Thank you!