getElementsByClassName.style.display

document.getElementsByClassName('xyz')[0].style.display = 'none';
Alert Anaconda