Hi please help, I am trying to hide a banner on my page see line 6 below my code is getting into the else but it's not hiding the banner
- var covidId = $(".covid-popup").attr('id');
- //POPUP ONLY ONCE
- if(localStorage.getItem('popState') != 'shown'){
- $('#'+ covidId +'').show();
- } else {
- $('#'+ covidId +'').hide();
- }