document.getElementsByClassName("xyz")[0].style.display giving " " output code example
Example: getelementsbyclassname.style.display
document.getElementsByClassName('xyz')[0].style.display = 'none';
document.getElementsByClassName('xyz')[0].style.display = 'none';