I’m newbie to jquery and I know that my question is simple. I would like to display a form.
Here is my jquery function:
function display_form(s_date)
{
$('#addEvent').show();
}
Here is how it is called :
$(document).ready(function() {
$('#calendar').fullCalendar({
dayClick: function(date, allDay, jsEvent, view)
{
date_format = $.fullCalendar.formatDate(date,"yyyy-MM-dd HH:mm:ss");
display_form(date_format);
return false;
},
events: 'https://www.google.com/calendar/feeds/myLogin%40gmail.com/public/basic'
});
});
It doesn’t work. When I click on a day, nothing happens.
I tried the code (directly display_form without the call) on http://jsfiddle.net/PytEU/ and it worked.
Maybe someone have the answer?
Thank you for your help
Here is my form :
<div>
<form id="addEvent" action="" method="post" >
// my form
</form>
</div>
I put the form in the same file that the jquery function and it works. I don’t know if it is the best solution