I want to set multiple dates programmatically on an inline jQuery datepicker. I have an array of dates and I want to loop through them and on each iteration, a date should be selected in datepicker.
The result should be multiple dates selected on the inline jQuery datepicker.
This is what I'm trying, but I haven't had much success with it.
for(var j=0; j<dateArr.length; j++){
$("#inlineDp").datepicker.('setDate',dateArr.pop());
}