I am new to programming and just wanted to know how to select multiple months using jQuery multipleDatesPicker. Just Month and Year.
$(function() {
$('.date-picker').multiDatesPicker( {
changeMonth: true,
changeYear: true,
showButtonPanel: true,
dateFormat: "yy-mm",
onClose: function(dateText, inst) {
var month = $("#ui-datepicker-div .ui-datepicker-month :selected").val();
var year = $("#ui-datepicker-div .ui-datepicker-year :selected").val();
debugger;
$(this).multiDatesPicker('setDate', new Date(year,month,1));
}
});
});
CSS:
.ui-datepicker-calendar {
display: none;
}
There are two things you can do to display only Month and Year in the calender:
and