Hey guys, I’m trying to load a popup effect but it won’t work! I’ve checked the code and it works when I run it in netbeans. But it won’t work on my website with Moesia?
I’ve checked and scripts.js has been loaded on the page where it is supposed to do it’s magic.
This is my code:
jQuery(function($) {
var terms = $('#terms');
var agree = $('#agree');
var overlay = $('#overlay');
var popupBox = $('#popupBox');
terms.click(function() {
overlay.fadeIn(300);
popupBox.fadeIn(300);
});
$('#agree, #overlay').click(function() {
overlay.fadeOut(300);
popupBox.fadeOut(300);
});
});