I am not very strong in JS, help please solve the issue. There is a div that needs to be displayed every 5 minutes
Inactive div
<div class="ibx-wpfomo-floating-popup" style="display: none; bottom: 90px; opacity: 0;"> Active div
<div class="ibx-wpfomo-floating-popup" style="display: block; bottom: 100px; opacity: 1;"> As I understand it, everything is simple: I need to change css c display: none to display: block using setInterval. But for some reason the code does not work.
My code: (I insert it into custom JS in the theme settings)
jQuery(window).load(function(){ setTimeout(function (){ $('.ibx-wpfomo-floating-popup').css('display', 'block'); }, 1000) }); I would be grateful for the tips :)