want to change calendar in dateinput jquery based on selected days from another textbox

want to change calendar in dateinput jquery based on selected days from another textbox

i am using two textbox one for number of days and second for date input. which are working together if i enter number of days in one textbox then the dateinput show the next date by adding days in current date
but in calendar date does not change you all can see in the attached image. i want to change the date in calendar as well. kindly help to solve this issue thanks.