First, define a CSS class to show highlighted effect.
.firstDay a{And use "beforeShowDay" event provided with jQuery UI Datepicker control which gets called before building the control. This event can be used to assign specific class to specific dates.
background-color : #00FF00 !important;
background-image :none !important;
color: #000 !important;
}
$(document).ready(function () {
$("#txtDate").datepicker({
beforeShowDay: function (date) {
return [true, date.getDate() == 1 ? "firstDay" : ""];
}
});
});
See Complete Code
Feel free to contact me for any help related to jQuery, I will gladly help you.
No comments:
Post a Comment