开发者

How can I find the fc-event div by having the event Object ID?

开发者 https://www.devze.com 2023-03-19 21:58 出处:网络
I want to append some additional html to the event divs depending on data I get from an ajax function.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消