I have been trying to add a class for selectable dates. And following is done to add a class
$('a.ui-state-default').addClass('myClass');
$('a.ui-state-highlight').removeClass('myClass');
$(".myClass").attr("style", "background:"+background_button+" !important; color:"+text_button+" !important;");
This is working fine.
But when I select a date in datepicker
, it's again reverting back to normal style and the added class to ui-state-default
is not coming.