
Untitled
By: a guest on
Jul 20th, 2012 | syntax:
None | size: 0.52 KB | hits: 11 | expires: Never
Have a script (JS) run when I click the month button
var calendar = $('#calendar').fullCalendar({
select: function(s, e, a) {
myfunction();
}
});
function myfunction(){
$.ajax({
url: 'myscript.php',
data: {myvariable: myvariable},
type: 'post',
success: function(data){
alert(data);
}
});
}
$(document).ready(function() {
// ... you can have other things here ...
$('.fc-button-month > .fc-button-inner').live('click', function() {
alert('I am here ..');
});
});