Jquery Fancybox auto display upon page load
Encounter this issue where it is needed to auto pop up Jquery Fancybox item. The solution is very easy.
$(document).ready(function(){
$('#myElementId').fancybox().trigger('click');
});
Summary:
The main point here this snippet of code:
.trigger('click');
which will auto pop up fancybox
$(document).ready(function(){
$('#myElementId').fancybox().trigger('click');
});
Summary:
The main point here this snippet of code:
.trigger('click');
which will auto pop up fancybox
Comments
Post a Comment