Let's say I have 3 objects in an array:
var redBoxx=document.getElementById("redBox");
var blueBoxx=document.getElementById("blueBox");
var orangeBoxx=document.getElementById("orangeBox");
var shapeArray = [redBoxx, blueBoxx, orangeBoxx];
I want to grab an object from the array based on it's current visibility status (as in visibility: "hidden" or "visible"). How do I do that?
id
s you have and build a new array with only those elements.