javascript hide element by class

59

javascript hide element by class -

docuement.querySelector('.class_name').style.visibility = 'hidden';

javascript hide elements by class -

for (let el of document.querySelectorAll('.appBanner')) el.style.visibility = 'hidden';

Comments

Submit
0 Comments