title: JQuery Datepicker Default Date Not Working When Two on Page
body: <p>I'm using Jquery datepickers to collect two dates on the same page, the calendars display correctly and I'm able to collect the input dates fine however, on the occasion a default date is supplied to JQuery, <strong>it only populates the first datepicker</strong> on the page. I'm using 
  <code>$( id ).datepicker( "option", "defaultDate", defaultDate );</code>
  to attempt to set the default date where the var id is the html id of the datepickers and defaultDate var is the date to set. How do I get the default date to populate in both datepickers?</p>
  
  <p><strong>Update:</strong>
   The html ids for both of these are unique. Here are some logs from the console-</p>
  
  <pre><code>//default date sets correctly
  
  default date 06/01/2017  
  id#opa_global_global_BeginBus
  
  
  //does not set
  
  default date 06/30/2017
  id#opa_global_global_a_TempVendor
  </code></pre>
  
  <p>I also noticed while debugging that the default date for the second datepicker value appears to be selected on the calendar, but not displayed in the corresponding textbox (see image below).
  <a href="https://i.stack.imgur.com/3olJF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3olJF.png" alt="enter image description here"></a></p>
  
  <p>The HTML</p>
  
  <pre><code>&lt;!--has default date ---&gt;
      &lt;div id="rn_CalendarInput_40" class="rn_CalendarInput"&gt;
          &lt;input type="text" class="datepicker form-control hasDatepicker" id="opa_global_global_BeginBus" name="opa_global_global_NysBeginBus" placeholder="MM/DD/YYYY" value="06/01/2017" aria-required="true"&gt;&lt;img class="ui-datepicker-trigger" src="assets/images/calendar.gif" alt="Select date" title="Select date"&gt;   
      &lt;/div&gt;
  
  &lt;!--does not have default date---&gt;
  &lt;div id="rn_CalendarInput_46" class="rn_CalendarInput"&gt;
      &lt;input type="text" class="datepicker form-control hasDatepicker" id="opa_global_global_TempVendor" name="opa_global_global_TempVendor" placeholder="MM/DD/YYYY" value="06/30/2017"&gt;&lt;img class="ui-datepicker-trigger" src="/assets/images/calendar.gif" alt="Select date" title="Select date"&gt;  
  &lt;/div&gt;
  </code></pre>