Reputation: 5126
I'm a beginner to javascript and Jquery. I'm using this plugin for Jquery datepicker. I have used the inline datepicker, wherein I have used the features like change month and year. I would like to select the multiple dates at a time in that inline datepicker. How can I do that?
Upvotes: 1
Views: 14335
Reputation: 896
Never use this plugin before, but if you look at this page : DatePicker with multiple select enabled you need to pass the following parameter :
selectMultiple:true
So you can initialize your control with something like that :
$('.date-pick')
.datePicker(
{
createButton:false,
displayClose:true,
closeOnSelect:false,
selectMultiple:true
}
);
Upvotes: 6