So I have this jquery (FullCalendar) and its showing records through the database query. Everything is fine until here :)
Now what I want is to add an event when the person clicks on a date (Only start(date) is required) but then the person must choose from a combobox (And the combobox is populate through the database too) which is the title.
From my understanding I have to this with ajax(?) but I don't know how to because I don't know Ajax..
I have this in the fullcalendar:
dayClick: function(date, allDay, jsEvent, view) {
if (allDay) {
alert('Clicked on the entire day: ' + date);
}else{
alert('Clicked on the slot: ' + date);
}
}
So I assume I have to call the ajax function after the "if (allDay){" and prepare a php file with the query, but I don't know how I can put a select option in there.. After the selection when the user click add run another script to add to the database..
The combobox with the database query will have the Title. The calendar only shows the Month(all the days from month).
Sorry if my English is bad!