jquery - Select and unselect multiple days in fullcalendar monthly view -


i working on application has requirement of selecting multiple days @ time , getting value of on button click , insert data base.

below code using achieve this. able so. can 1 me out this?

$("#calendar").fullcalendar({                 header: {                     left: '',                     center: 'title',                     right: 'month'                 },                 // defaultdate: currentdate[0] + "/01/" + currentdate[1],                 navlinks: true,                 editable: true,                 draggable: false,                 eventlimit: true, // allow "more" link when many events                 events: message.responsedata,                 selectable: true,                 select: function (start, end, jsevent, view) {                     $("#calendar").fullcalendar('addeventsource', [{                         start: start,                         end: end,                         rendering: 'background',                         //block: true,                     },]);                     $("#calendar").fullcalendar("unselect");                 },                 dayclick: function (date, jsevent, view) {                     $(".fc-state-highlight").removeclass("fc-state-highlight");                     $(jsevent.target).addclass("fc-state-highlight");                 },                 selectoverlap: function (event) {                     return !event.block;                 } }); 

why not send date database on dayclick? or, put dates clicked array , post dates in array on button click? can set boolean value each date check if has been selected.


Comments