$(document).ready(function() {
$(".link").fancybox({
scrolling: 'yes'
});
});
I have this code which works, but i'm loading content dynamically. That content does not work on the jQuery code. So I tried this
$(document.body).on('click', '.link' ,function(){
$(".link").fancybox({
scrolling: 'yes'
});
});
But this does not work, the link opens like a regular link.
Any ideas?
Inside jquery.fancybox.js I needed to change the setting of scrolling to yes.
scrolling : 'yes',