title: how to change the datepicker date based on first date picker in jquery
body: <p>i have two date picker </p>
  
  <p>i need to set add condition based on
  first date picker</p>
  
  <blockquote>
    <p>if first  date picker selected current date then should be </p>
    
    <p><strong>second date picker will select after next date of selected in date picker - 1</strong></p>
  </blockquote>
  
  <pre><code>&lt;input type="text" id="datepicker"/&gt;
  
  &lt;input type="text" id="datepicker2"/&gt;
  $(function() {
      $( "#datepicker1" ).datepicker({
      minDate:0,
      dateFormat: "yy-mm-dd" });
  
  });
  
  $(function() {
      $( "#datepicker2" ).datepicker({
      dateFormat: "yy-mm-dd" });
  
  });
  </code></pre>
  
  <p>how i can do in jquery??</p>
  
  <p><a href="https://i.stack.imgur.com/UyrMG.png" rel="nofollow noreferrer">Datepicker - 1</a></p>