jQuery ui datepicker: Remove yellow highlight on (unhighlight) today's

superigno

How do you remove the yellow highlight on datepicker's today's date? I was able to do it when my datepicker is called via an input field (got it from here: Jquery datepicker: highlight 'today' when clicked?), but cannot when it is called via div (inline = true)

My reason for this is I am using custom timezone and if I have a different today's date based on the timezone it still highlights the today's date of my local computer.

Here is the code that worked using an input field:

HTML:

<p>Date: <input type="text" id="datepicker" /></p>

Javascript:

$(function() {
    $("#datepicker").datepicker({
        beforeShow: function (input, inst) {
            setTimeout(function() {
                inst.dpDiv.find('a.ui-state-highlight').removeClass('ui-state-highlight');
            }, 100);
        }
    });
});
Amit

try this DEMO

.ui-state-highlight{
    border:1px solid #d3d3d3/*{borderColorDefault}*/ !important;
    background:#e6e6e6/*{bgColorDefault}*/ url(images/ui-bg_glass_75_e6e6e6_1x400.png)/*{bgImgUrlDefault}*/ 50%/*{bgDefaultXPos}*/ 50%/*{bgDefaultYPos}*/ repeat-x/*{bgDefaultRepeat}*/!important;
}
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active{
     border:1px solid #aaaaaa/*{borderColorActive}*/ !important;
    background:#ffffff/*{bgColorActive}*/ url(images/ui-bg_glass_65_ffffff_1x400.png)/*{bgImgUrlActive}*/ 50%/*{bgActiveXPos}*/ 50%/*{bgActiveYPos}*/ repeat-x/*{bgActiveRepeat}*/!important;
}

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

jQuery UI Datepicker getDate returns today's date on invalid date

From Dev

JQuery Validate is firing both Highlight and Unhighlight in Chrome

From Dev

JQuery Validate is firing both Highlight and Unhighlight in Chrome

From Dev

jQuery validation showErrors blocks highlight/unhighlight

From Dev

jQuery UI DatePicker change highlighted "today" date

From Dev

Highlight, Disable specific days in jQuery UI datepicker

From Dev

Highlight, Disable specific days in jQuery UI datepicker

From Dev

How to highlight dates with jQuery's datepicker

From Dev

Javascript highlight/unhighlight word

From Dev

Javascript highlight/unhighlight word

From Dev

Disable future dates after today in Jquery Ui Datepicker

From Dev

minDate:0 in Jquery DatePicker also disable today's date

From Dev

Highlight today in Mac's cal

From Dev

jQuery Datepicker how to highlight all dates between ui-datepicker-current-day and another currently hovered date?

From Dev

Jquery DatePicker today button color

From Dev

How can I remove the extra width to the right of jquery UI datepicker?

From Dev

How to autofocus with highlight blue color on today date in datepicker of angular material?

From Dev

Highlight current Selection in Yellow

From Dev

JQuery Datepicker UI transparent

From Dev

setDate in jQuery UI DatePicker

From Dev

DatePicker jquery UI not working

From Dev

Extending jQuery UI datepicker

From Dev

JQuery Datepicker UI dateformat

From Dev

jQuery ui datepicker

From Dev

jQuery DatePicker - How do I show today's month instead of the selected dated?

From Dev

Why does jQuery Datepicker select today's date when numbers are entered and enter is pressed?

From Dev

unable to set default date with jquery ui's datepicker

From Dev

Can't Compare dates using jQuery UI's datepicker

From Dev

Default date range for jQuery-UI's datepicker

Related Related

  1. 1

    jQuery UI Datepicker getDate returns today's date on invalid date

  2. 2

    JQuery Validate is firing both Highlight and Unhighlight in Chrome

  3. 3

    JQuery Validate is firing both Highlight and Unhighlight in Chrome

  4. 4

    jQuery validation showErrors blocks highlight/unhighlight

  5. 5

    jQuery UI DatePicker change highlighted "today" date

  6. 6

    Highlight, Disable specific days in jQuery UI datepicker

  7. 7

    Highlight, Disable specific days in jQuery UI datepicker

  8. 8

    How to highlight dates with jQuery's datepicker

  9. 9

    Javascript highlight/unhighlight word

  10. 10

    Javascript highlight/unhighlight word

  11. 11

    Disable future dates after today in Jquery Ui Datepicker

  12. 12

    minDate:0 in Jquery DatePicker also disable today's date

  13. 13

    Highlight today in Mac's cal

  14. 14

    jQuery Datepicker how to highlight all dates between ui-datepicker-current-day and another currently hovered date?

  15. 15

    Jquery DatePicker today button color

  16. 16

    How can I remove the extra width to the right of jquery UI datepicker?

  17. 17

    How to autofocus with highlight blue color on today date in datepicker of angular material?

  18. 18

    Highlight current Selection in Yellow

  19. 19

    JQuery Datepicker UI transparent

  20. 20

    setDate in jQuery UI DatePicker

  21. 21

    DatePicker jquery UI not working

  22. 22

    Extending jQuery UI datepicker

  23. 23

    JQuery Datepicker UI dateformat

  24. 24

    jQuery ui datepicker

  25. 25

    jQuery DatePicker - How do I show today's month instead of the selected dated?

  26. 26

    Why does jQuery Datepicker select today's date when numbers are entered and enter is pressed?

  27. 27

    unable to set default date with jquery ui's datepicker

  28. 28

    Can't Compare dates using jQuery UI's datepicker

  29. 29

    Default date range for jQuery-UI's datepicker

HotTag

Archive