display is not an attribute – it’s a CSS property. You need to access the style object for this:
document.getElementById('classRight').style.display = 'none';
display is not an attribute – it’s a CSS property. You need to access the style object for this:
document.getElementById('classRight').style.display = 'none';