0

How To Enable Disable Divs?

Im Tryna Make a website On here so before i upload it its perfect but u cant have more than 1 html document so i wanted to enable and disable divs but idk how pls help

1st Nov 2025, 9:25 PM
Konrad Buchloh
Konrad Buchloh - avatar
2 odpowiedzi
+ 2
You can use Javascript to change the CSS display property.
1st Nov 2025, 9:38 PM
Lisa
Lisa - avatar
+ 2
yes, create two classes .show { display: block; } .hide { display: none; } and add or remove them from the element's classList with javascript...
1st Nov 2025, 11:11 PM
Bob_Li
Bob_Li - avatar