I am using the jQuery DatePicker and i've got the following code which is supposed to change the default date to the one I have specified, in this example it is supposed to default and highlight 18th August 2017.
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("#date").datepicker({dateFormat: 'yy-mm-dd'});
jQuery("#date").datepicker('setDate', new Date('2017-08-18'));
});
</script>
http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css
http://themetrace.com/demo/shamcey/css/style.default.css
I think that will work perfectly . I just tried that in shamcey demo page in the console . It worked perfectly
this is after i executed the code
Add this style in your style sheet
<style>
.ui-state-active{
background:#a5d2ff
}
</style>
"#a5d2ff" is the color . You can replace with what ever color you want. This is the screen shot after i added that style