document.getElementsByClassName apply css code example
Example 1: getelementbyclass
var selector = document.getElementsByClassName('class-name');
Example 2: getelementsbyclassname.style.display
document.getElementsByClassName('xyz')[0].style.display = 'none';