Can anyone help me?
I have a pop up on a page and I only want it to show once. I also have another popup on another page running the same code.
What would be the best way to make it so that each pop up only shows once, but on there own page?
$(document).ready(function() {
if(localStorage.getItem('popupState') != 'shown'){
$("#voucherForm").delay(10000).fadeIn();
$("#signupcover").delay(10000).fadeIn();
localStorage.setItem('popupState','shown');
}
});
$("#popup-close").click(function() {
$("#voucherForm").removeAttr( 'style' );
});