bootstrap-datepicker showOnFocus

A demonstration of the different behaviour between attribute configuration and JS configuration when using the showOnFocus option.

HTML

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.5.1/css/bootstrap-datepicker3.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.5.1/js/bootstrap-datepicker.js"></script>
  <table>
 <tr>
    <td class="tdPopupTextDescription">Effective Date:
    </td>
     <td id="tdEffectiveDate">
      <div class="input-group date" data-provide="datepicker" data-date-show-on-focus="true">
       <input type="text" class="form-control required" id="txtEffectiveDate" maxlength="10" style="display:inline;">
       <div class="input-group-addon">
               <span class="glyphicon glyphicon-th"></span>
       </div>
       <div class="input-group-addon">
           <span id="test" class="glyphicon glyphicon-asterisk requiredAsterisk"></span>
       </div>
       <span id="spanAstreisk" class="glyphicon glyphicon-asterisk requiredAsterisk"></span>
     </div>
   </td>
   </tr>
 
 </table>