title: Datepicker onSelect to format new date range
body: <p>I have 2 datepickers, one is a fromDate and one is a toDate. I can highlight the range from the fromDate to the toDate successfully in beforeShowDay(), but I need it to highlight when new values are selected. This triggers the onSelect statement. Is there a way to either: </p>
  
  <p>1) trigger the beforeShowDay again? or </p>
  
  <p>2) get all the dates of the new range and apply a css class to them?</p>
  
  <pre><code> beforeShowDay: function(date){
                          if (date &gt;= initialFromDate &amp;&amp; date &lt;= initialToDate) {
                              return [true, 'ui-individual-date', ''];
                          }
                          else {
                              return [true, '', ''];
                          }
                      },
   onSelect: function (dateText, obj) {
  
                          var fromDate = new Date(dateText);
                          var toDate = $(".dateDiv2").datepicker('getDate');
  
       **get individual dates? 
         if (individualdate &gt;= fromDate &amp;&amp; individualDate &lt;= toDate)
         apply css class or formatting to individualDate**
  
  },
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/P21is.png" alt="The picture gives the generated css and html for the datepicker"></p>
  
  <p><img src="https://i.stack.imgur.com/cFjHu.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/cFjHu.png" alt="enter image description here"></p>