superigno superigno - 3 years ago 112
CSS Question

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

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:


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


$(function() {
beforeShow: function (input, inst) {
setTimeout(function() {
}, 100);

Answer Source

try this DEMO

    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;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download