SyntaxFix
Write A Post
Hire A Developer
Questions
display is not an attribute - it's a CSS property. You need to access the style object for this:
display
document.getElementById('classRight').style.display = 'none';