newbieMACuser
newbieMACuser

Reputation: 907

Boostrap Datepicker Default Date Highlight

I am currently using bootstrap datepicker and I believe by default the current date should be highlighted once the user opens the datepicker. As of the moment, there is no date highlighted when you open the datepicker for the first time. Please see attached photo.

enter image description here

Upvotes: 1

Views: 573

Answers (2)

Code Lღver
Code Lღver

Reputation: 15603

Add this code:

$('#datePicker').datepicker({
todayHighlight: true
});

where #datePicker is your field id replace with your field id.

Upvotes: 1

TheGreenkey
TheGreenkey

Reputation: 143

By default this option is disabled. See the option todayHighlight

Upvotes: 1

Related Questions