I would like to set the value of end date from numbers of days and start day selected in the form. I have tried this but it doesn't work.
$(document).on('change', "#startDate", function (e) {
e.preventDefault();
var nbDays = $("#nbDays").val();
var startDt = $("#startDate").val();
var endDt = $("#endDate").val();
$("#endDate").val(startDt + nbDays) ;
});