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
Seria Yin
+5
Kyle Smith
+5
JSanchez
+5
Larapsodia
+5
TJG
+5
Sharma Pocso
+5
Wilber82
+5
T-rex
+5
Wayno
+5
Winny
+5
Sikku
+5
AlecPerkey
+5
The Alpha
+5
IQAndreas
+5
TeacherSue
+5