Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 584 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 584 Bytes

is_hidden.js

Adds a method to the Element interface to determine if the given element is currently hidden from view.

<html>
  <body>
    <div class="a"></div>
  </body>
</html>
var tmp = document.getElementsByClassName('a')
for(var i = 0; i < tmp.length; i++){
  console.log(tmp[i].isHidden());
}

Credit

All credit is due to Tokimon on StackOverflow. I've just put it together and made a library out of it.

Contributing

Yes! Please do. For starters we could increase the meaningfulness of this README