Hi, I added the calender to my asp.net mvc 2 application from here . I want to pick the selected date where I am going to enter the event. How can I get selected date? Also I want to save this date and corresponding event to the database. how to do this also ? I am new in jequery. please help!
A:
Use this code when you setup the plugin
$('#calendar').fullCalendar({
selectable: true,
selectHelper: true,
select: function(start, end, allDay) {
// start contains the date you have selected
// end contains the end date in case you have selected a date range
alert("Event Start date" + start);
alert("Event End date" + end);
}
});
Please note that I have just included the options needed to answer your question. Have also a look at this demo.
For further information refer to the very good made plugin documentation.
Lorenzo
2010-10-18 13:00:05
yes i got it , here start is the selected date .
Lalit
2010-10-20 08:36:18