I am trying to integrate the full jquery calendar plugin. And I want to disable past dates for selection. Therefore, I can only select dates starting from the current date. How is this possible? How can I filter dates and specify a condition. I am new to jquery.
$(document).ready(function() { var date = new Date(); var d = date.getDate(); var m = date.getMonth(); var y = date.getFullYear(); var calendar = $('#calendar').fullCalendar({ header: { left: 'prev,next today', center: 'title', right: 'month,agendaWeek,agendaDay' }, selectable: true, selectHelper: true, select: function(start, end, allDay) { var title = prompt('Event Title:'); if (title) { calendar.fullCalendar('renderEvent', { title: title, start: start, end: end, allDay: allDay }, true
jquery jquery-plugins fullcalendar
rubyist
source share