I have the following functions in my document
jQuery(document).ready(function() {
jQuery('body').on('click', 'a.menu', function () {
var target = jQuery(this).attr('href');
jQuery('#container').load(target+' #content');
return false;
});
$("a.group").fancybox();
});
The first one replaces the container with the href of the menu link. The corresponding subpages are actually plain divs but could be complete html (if necessary).
The second one calls a fancybox gallery on the selected elements.
How do i get this $("a.group").fancybox()
to be executed, when the subpages are loaded?
Many thx in advance, mart05