3
$(".eventName").click(
function() {
var eventId = $(this).attr('id');
var role = $(this).attr('dir');
var todo = 'viewDetails';
$("#details").load("plugins/company_calendar/calendar.php?eventId="+ eventId +"&todo="+ todo +"&role="+ role);
$(this).find('.eventDetails').css("left", $(this).position().left + 20);
$(this).find('.eventDetails').css("top", $(this).position().top + $(this).height());
$(".eventDetails").fadeIn(10);
}
);
是否可以将我加载的数据添加到细节中?我可以在同一时间在Jquery中使用Append和Load函数吗?
no id解决方案:var appender = $(“
”).appendTo(“#details1”); appender.load( “/ foo.php嗒嗒= QWERT?”);' – frumbert 2012-03-21 09:12:38