What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-08 04:12:03
how to check div is display:none or block in javascript
// If you have set the display property using JavaScript let current = element.style.display; // If you have not set the display property manually let current = window.getComputedStyle(element).display; // 'current' will be the display style as a string... Add solution
Best helpers
Colocvial
+5
Tjd
+5
Zagi
+5
Tobiak777
+5
Leosar
+5
Sarah witte
+5
Gouri
+5
Gabi Purcaru
+5
Pooria Han
+5
Skry
+5
Mladenka
+5
Yoyo
+5
Thorba
+5
L. Samson
+5