Posts

Showing posts with the label fancybox

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