I'm trying to create a conditional with display: block;
and display: none;
but JS is not bringing the value of the css display of my #slide
element.
What is the problem?
var slider = document.getElementById('slide');
if(slider.style.display == 'block'){
alert('teste');
}