krishna ganisetti krishna ganisetti - 5 months ago 40
jQuery Question

how to get a particular date by clicking the respective event(dow) in fullcalendar?

I am trying this

$('#calendar').fullCalendar({
events:[{
title:"events",
dow: [0, 1, 2, 3, 4, 5, 6]
},]


in this code how to get date like

element.bind('click', function() { $('#pick_date').val(event.date);});


Note: here there is no start date or range so how to get date when click event.

Answer

Assuming I understand the question correctly, have you tried eventClick?

Event Click Documentation

    eventClick: function (event, jsEvent, view) {
       console.log('Event Start: ' + event.start.toISOString());
    }  

jsbin

Comments