Posts

Showing posts from September, 2018

How to hide all rows with one ID in JavaScript?

You can hide all rows with same id via this code. Or you can take any action on all element which has the same id. const elementsList = document.querySelectorAll("#hideornot"); const elementsArray = [...elementsList]; elementsArray.forEach(element => {     element.style.display = "none"; // change according your need });