title: Ensuring a date is at least 1 day later than another date using jQuery UI Datepicker
body: <p>Using jQuery DatePicker, I'd like to ensure that the departure date is at least 1 day after the arrival date. The closest I've managed to get to this is to ensure that the departure date is on the same day as the arrival date (I just couldn't figure out how to add 'selectedDate + 1 day' in the JS). I'd appreciate any help with this, thanks.</p>
  
  <p>Here's my JS:</p>
  
  <pre><code>$(".datepicker_arrival").datepicker({
    dateFormat: 'dd/mm/yy',
    minDate: new Date(),
    onSelect: function(dateText, inst) {
      if($('.datepicker_departure').val() == '') {
        var current_date = $.datepicker.parseDate('dd/mm/yy', dateText);
        current_date.setDate(current_date.getDate()+1);
        $('.datepicker_departure').datepicker('setDate', current_date);
      }
    },
    onClose: function( selectedDate ) {
      $( ".datepicker_departure" ).datepicker( "option", "minDate", selectedDate );
    }
  });
  
  $(".datepicker_departure").datepicker({
    dateFormat: 'dd/mm/yy',
    minDate: new Date(),
    onClose: function( selectedDate ) {
      $( ".datepicker_arrival" ).datepicker( "option", "maxDate", selectedDate );
    }
  });
  </code></pre>
  
  <p>Here's my HTML:</p>
  
  <pre><code>&lt;input type="text" name="arrival" class="datepicker datepicker_arrival textfield" placeholder="Arrival Date" /&gt;
  
  &lt;input type="text" name="departure" class="datepicker datepicker_departure textfield" placeholder="Departure Date" /&gt;
  </code></pre>