I\'m trying to get bootstrap datepicker to highlight the date selected on the dropdown date picker. It\'s not currently doing this.. What am I missing?
for this u have to had bootstrap-datepicker.js & bootstrap-datepicker.min.js files.U can also call $('#datePicker').datepicker(); method but it comes with its own default settings. So in the script tag I have applied my own customization in the datepicker() method. Then I just make an datepicker input component in the div tag which is defined in the body tag but I have meke it briefly.
The solution of u r question is the span tags. Which r applying icons on the datepicker input component. I have choosen an calender icon which is glyphicon glyphicon-calendar. But before it have to tell the browser that I am going embedd an icon by writing class="input-group-addon add-on" in the span tag which is used to group icon with the text input.