---
title: "Discussion on \"How to check if an element is hidden with\nJavaScript\" | Hashnode"
description: "Discussion on \"How to check if an element is hidden with\nJavaScript\". Photo by Kai Oberhäuser\nIf you want to check if an element is actually hidden then you can’t just access its ​style ​property with JavaScript (as the properties on the object will be empty unless you have already assigned a value with JavaScript).\nYo..."
url: "https://hashnode.com/posts/how-to-check-if-an-element-is-hidden-with-javascript/5fb3b73fa73df361ab710d23"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to check if an element is hidden with JavaScript](https://jdcentral.hashnode.dev/how-to-check-if-an-element-is-hidden-with-javascript?utm_source=hashnode&utm_medium=feed)

Photo by Kai Oberhäuser If you want to check if an element is actually hidden then you can’t just access its ​style ​property with JavaScript (as the properties on the object will be empty unless you have already assigned a value with JavaScript). Yo...

Nov 17, 2020 · 1 min read · jdcentral.hashnode.dev  
Read the article

-   [#programming](https://hashnode.com/tag/programming)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#dom](https://hashnode.com/tag/dom)
-   [#devcommunity](https://hashnode.com/tag/devcommunity)

## Written by

[James Bubb](https://hashnode.com/@codebubb)

@codebubb · Birmingham, UK

  
[View profile](https://hashnode.com/@codebubb)

## Responses 3

Markdown supported · ⌘↵ to post

[Rethinking UI](https://hashnode.com/@suresh9058)

[Nov 17, 2020](https://hashnode.com/posts/how-to-check-if-an-element-is-hidden-with-javascript/5fb3b73fa73df361ab710d23/comment/5fb40c8ba73df361ab711671)

Good one...

[Rahul](https://hashnode.com/@RAHULISM)

[Nov 17, 2020](https://hashnode.com/posts/how-to-check-if-an-element-is-hidden-with-javascript/5fb3b73fa73df361ab710d23/comment/5fb3db1bb589f1618af9d5b3)

This is cool and amazing for beginners.

[James Bubb](https://hashnode.com/@codebubb)

[Nov 17, 2020](https://hashnode.com/posts/how-to-check-if-an-element-is-hidden-with-javascript/5fb3b73fa73df361ab710d23/comment/5fb3db1bb589f1618af9d5b3#reply-5fb413a5a73df361ab7116df)

Thanks [Rahul](https://hashnode.com/@rahxul)👍

[Usman Sabuwala](https://hashnode.com/@usmanwrites)

[Nov 17, 2020](https://hashnode.com/posts/how-to-check-if-an-element-is-hidden-with-javascript/5fb3b73fa73df361ab710d23/comment/5fb3cdc4a73df361ab710f88)

This seems cool! Learnt a new thing today. Thanks

[James Bubb](https://hashnode.com/@codebubb)

[Nov 17, 2020](https://hashnode.com/posts/how-to-check-if-an-element-is-hidden-with-javascript/5fb3b73fa73df361ab710d23/comment/5fb3cdc4a73df361ab710f88#reply-5fb3d323a73df361ab7110b9)

You're welcome 👍
