I have the following Javascript code:
setTimeout(function() {
var el = document.getElementsByClassName('video');
el.className += " hidden";
// el[0].style.visibility = 'hidden';
}, 3000);
I wanted the script to add an class hidden to the video class. Wat is wrong about my code?
Your sincerely