title: jQuery MultiDatesPicker for datepicker: Restrict range?
body: <p>I <a href="https://stackoverflow.com/questions/20075348/multiple-single-dates-selector-using-jquery-ui-datepicker">decided</a> to use this addon for the jQuery UI Datepicker,</p>
  
  <p>Wich seems to work great, for example:</p>
  
  <pre><code>$(function () {
      var today = new Date();
      $('#test').multiDatesPicker({
          dateFormat: "yy-mm-dd",
          addDisabledDates: [today.setDate(1), today.setDate(3)]
      );
  });
  </code></pre>
  
  <p>This allows user to select as many days as he wants except the 1st and the 3rd of current month,</p>
  
  <p>but how could I restrict the user to select dates only greater than a desired date (start) and smaller than another desired date?</p>
  
  <p>I don't see any method for that in their <a href="http://multidatespickr.sourceforge.net/#maxPicks-demo" rel="nofollow noreferrer">documentation</a> </p>
  
  <p>PD: As a workaround, it ocours to me to create an array with the dates before/after my desired interval, but how could I mark it all? (I mean, how many years should I contempl in this array??)</p>
  
  <p>-EDIT-</p>
  
  <p>Just to test, I am trying to disable the 15 days before and 15 days after from my desired range, like this:</p>
  
  <pre><code>$(function () {
          var start = new Date(2013, 11, 20)
          var end =  new Date(2013, 11, 24)
  
          console.log(start, end);
  
          var dissabledDates = [];
          if ( end &lt; start ) {
              alert('Está mal');
          }
  
          for ( i = 0 ; i &lt; 15 ; i++ ){
              var currentDate = new Date();
              currentDate.setDate( start.getDate() - i );
              dissabledDates[ dissabledDates.length ] = currentDate;
          }
          for ( i = 0 ; i &lt; 15 ; i++ ){
              var currentDate = new Date();
              currentDate.setDate( end.getDate() + i );
              dissabledDates[ dissabledDates.length ] = currentDate;
  
              console.log(currentDate);
          }
  
  
          var today = new Date();
          $('#test').multiDatesPicker({
              dateFormat: "yy-mm-dd",
              addDisabledDates: dissabledDates
          });
      });
  </code></pre>
  
  <p>And the restriction happens, but, look how the selector looks (note I only restricted 15 days before and after)</p>
  
  <p><img src="https://i.stack.imgur.com/kDtUX.png" alt="enter image description here"></p>
  
  <p>so question is: how can I only let user select between my start and end dates?</p>