How r u?
I have two datepickers with two fields
I want when the user choosing (From) the second field ( TO ) will be next
you need to convert your dateText into the right format of date, then plus one and set back to the #to value
var from = dateText.split("-");
var fDate = new Date(from[2], from[1] - 1, from[0]);
var newdate = new Date(fDate);
newdate.setDate(newdate.getDate() + 1);
$("#to").val(newdate.getDate() + "-" + newdate.getMonth() + "-" + newdate.getFullYear());