title: How to add a day from current date in Jquery Datepicker
body: <p>I want the End Daye to be automatically set one day after the current date.
  Here is my attempt. But it's not working.</p>
  
  <p>Can someone help me with this? I am currently new in Jquery</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;link rel="stylesheet" href="//code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css"&gt;
      &lt;script src="js/jquery-1.7.1.min.js"&gt;&lt;/script&gt;
      &lt;script src="js/jquery-ui.js"&gt;&lt;/script&gt;
      &lt;script src="js/jquery-ui.min.js"&gt;&lt;/script&gt;
      &lt;script&gt;
          $(function() {
              var date = $('#datepicker1').datepicker({
                  dateFormat: 'dd-mm-yy'
              }).val();
              var date2 = $('#datepicker2').datepicker({
                  dateFormat: 'dd-mm-yy'
              }).val();
              $("#datepicker1").datepicker();
              $("#datepicker2").datepicker();
              $("#datepicker1").datepicker().datepicker("setDate", new Date());
              var date3 = $('#datepicker1').datepicker('getDate');
              date3.setDate(date3.getDate() + 1);
              $('#datepicker2').datepicker('setDate'.date3);
          });
      &lt;/script&gt;
      &lt;style&gt;
          div.ui-datepicker {
              font-size: 10px;
          }
      &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;p&gt;Start Date&lt;/p&gt;
      &lt;input type="text" id="datepicker1"&gt;
      &lt;p&gt;End Date&lt;/p&gt;
      &lt;input type="text" id="datepicker2"&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>