title: Add a day with selected date using Jquery datepicker
body: <p>I have been trying to add a day for another date field with date selected of current field</p>
  
  <pre><code>     ,
   onSelect: function(date) {
       var date2 = $('.currDate').datepicker('getDate');
         date2.setDate(date2.getDate()+1); 
         $('.nextDt').datepicker('setDate', date2);
      }
  </code></pre>
  
  <p>However I am getting at <code>date2.setDate(date2.getDate()+1);</code> </p>
  
  <pre><code>Message: Object doesn't support this property or method
  </code></pre>
  
  <p>How can I solve this issue?</p>