Insert document.getElementById hidden but how?

Hello guys,

im completly new to java script, and im trying to add this line to a .css sheet but i cant get it to work. I tried so many combinations i found on google already but nothing works for me. please help. Or maybe this line has to be written into another script file? Youll find all script files on the github link.

I wanna add this line
document.getElementById(“othervideospinner”).style .visibility = ‘hidden’;

into this code

I hope you guys can help


#othervideospinner {
    display: none;
    box-sizing: border-box;
    position: absolute;
    border-radius: 50%;
    border-right: 8px solid transparent;
    border-top: 8px solid #ccc;
    animation: spinner .6s linear infinite
}

The selected element’s display is none. It’s not being rendered by the browser. Changes to this element with JS take effects behind the scene, we can log the changes to the console to see them.

1 Like

Many thanks, it worked perfectly