title: Allow datepicker to show only specific month
body: <p>I'm trying to crate a datepicker from jQuery.</p>
  
  <p>Users will allow to choose only June to September in each year from 2016-2020.
  (So I don't think minDate and maxDate will work here)</p>
  
  <p>I tried using the "beforeShowDay" as mentioned in 
  <a href="https://stackoverflow.com/questions/18393441/disable-specific-months-jqueryui-datepicker">Disable specific months JqueryUI datepicker</a></p>
  
  <p>The code was successfully disable users from picking the date outside from June to September but they can still choose January-December from the month dropdownlist (of datepicker).</p>
  
  <p>What I want to do is limit the datepicker month-drop-down-list to show only June to September.</p>
  
  <pre><code>$(document).ready(function() {
  
  
             $("#datepicker").datepicker({
             changeMonth: true,
             changeYear: true,
             yearRange:'2016:2020',
             minDate:0,
             beforeShowDay: disableSpecificWeekDays
  
          });     
  
  
          var monthsToDisable = [0,1,2,3,4,9,10,11];
          var endMonth=[8];
          function disableSpecificWeekDays(date) {
              var month = date.getMonth();
  
  
              if ($.inArray(month, monthsToDisable) !== -1) {
                  return [false];
              }
              return [true];
          }
          $("#datepicker").datepicker("setDate",'06/01/2016');
      }); 
  </code></pre>