title: How to show date like end date future dates depends on start date
body: <p>I have two datepickers. I want to show enddate depends on startdate, not in reverse order.</p>
  
  <p>Example:</p>
  
  <pre><code>startdate:07/02/2018  enddate: 07/16/2018 == correct - should be enable 16
  startdate:07/02/2018  enddate: 07/02/2018 == wrong -should be disable  02(enddate)
  </code></pre>
  
  <p>I want to show only future dates in enddate after I selected startdate. How can I do it? I have only 2,16 dates for all months and years. start date and enddate should not be same..enddate should be future date depends on startdate. <a href="http://jsfiddle.net/FdfPY/771/" rel="nofollow noreferrer">http://jsfiddle.net/FdfPY/771/</a></p>
  
  <p><strong>Js:</strong></p>
  
  <pre><code>  var disabledDates = []
    $("#from").datepicker({
    minDate: 'D',
    dateFormat: "dd/mm/yy",
    defaultDate: "+1w",
    numberOfMonths: 1,
          beforeShowDay: function(d) { 
          if (d.getDate() == 2 || d.getDate() == 16) {
            return [true, "" ];
          } else {
             return [false, "" ];
          }
       },
    onClose: function(selectedDate) {
    disabledDates=[selectedDate];
      $("#to").datepicker("option", "minDate", selectedDate); 
       }
      });
  
    $("#to").datepicker({
    minDate: 0,
    dateFormat: "dd/mm/yy",
    defaultDate: "+1w",
    numberOfMonths: 1,
          beforeShowDay: function(d) {  
  
          if (d.getDate() == 2 || d.getDate() == 16) {
            return [true, "" ];
          } else {
             return [false, "" ];
          }
       } 
       });
  </code></pre>
  
  <p><strong>HTML:</strong></p>
  
  <pre><code>Start Date:&lt;input type="text" name="date" id="from" readonly="readonly" size="12" /&gt;
  End Date:&lt;input type="text" name="date2" id="to" readonly="readonly" size="12" /&gt;
  </code></pre>