i am trying to create a filter with a checkbox when someone clicks on the check box it will hide all the div1
//so far i have used
function div1hide() {
document.getElementById("dive1").style.display ='none';
}
var hider = document.getElementById("div1");
document.addEventListener("click", dive1hide, false);
< id="div1">test</div>
< id="div1">test</div>
< id="div1">test</div>
< id="div1">test</div>
it only hides the first one i m not sure why its not hiding all the other ones...