1

Regarding the quarterPicker for the Bootstrap datePicker (SO: how-to-change-bootstrap-datepicker-month-view-to-display-quarters, jsfiddle: jsFiddle):

How can an initial value be highlighted on startup?

I supplied a value in

window.onload

but it is not displayed when starting up the webpage. But if I change the quarter and re-open the dialogue, the quarter is highlighted correctly.

Community
  • 1
  • 1

1 Answers1

0

Try this:

$('#example1').datepicker('setDate', 'Q1 2018');
$('#example1').datepicker('update');
R.Costa
  • 1,395
  • 9
  • 16