I want to append some additional html to the event divs depending on data I get from an ajax function.
I have grabbed all the eventobjects with
var array = $('#calendar').fullCalendar( 'clientEvents' );
for(var a=0; a<array.length; a++)
{
$.post(site_url+"/calendar/get_workers_on_job", { 'id' : array[a].id },
function(data) {
for(var b=0;b<data.length;b++)
{
//Here I want to append the json data to th开发者_开发技巧e event div.
}
},'json');
}
But I can't figure out how to find out which event div is associated with it.
I'd very appreciate any help I can get.
Put a class on the div then use jQuery.
精彩评论