Skip to content
Advertisement

Set Current Date as Selected in Bootstrap datepicker

I am using bootstrap-datepicker in my code. How Do I select current date in JavaScript and show it as selected?

After research this is code I am using but current day does not appear as selected:

JavaScript

Advertisement

Answer

No idea about the code you are using and without HTML markup doesn’t make much sense,

Here is a working example of what you are after

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement