I'm trying to make a simple call to a popup jquery plugin (bpopup).
;(function($) {
$(window).load(function(){
$('#popup').bPopup({
modalClose: false,
opacity: 0.6,
positionStyle: 'fixed'
});
});
});
})(jQuery);
There is a div with the id 'popup' which should appear, however nothing is happening (no popup is even being blocked) when the window loads.
Any advice greatly appreciated, thank you.
EDIT: The page in question is very light - text only, the popup only contains text.
You have a syntax error in your code. Remove one of the extra });
.
;(function($) {
$(window).load(function(){
$('#popup').bPopup({
modalClose: false,
opacity: 0.6,
positionStyle: 'fixed'
});
});
})(jQuery);