Kamala Veni

Kamala Veni

  • NA
  • 65
  • 21.3k

I wanna 7 days continuosly

Apr 27 2016 6:25 AM
hi..
am having code for add next day oly with change able,bt nw as lyk dat i need it for 7 days to display?
 
hw can do dat? plz help me
 
 prgm:
 
<script>$(function () {
$('#nxtDate').datepicker({
dateFormat: "dd-M-yy",
});
$("#currDate").datepicker({
dateFormat: "dd-M-yy",
minDate: 0,
onSelect: function (date) {
var date2 = $('#currDate').datepicker('getDate');
date2.setDate(date2.getDate() + 1);
$('#nxtDate').datepicker('setDate', date2);
}
});
})</script>
 

Answers (3)