Why I can’t hide the <div> with this code ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why I can’t hide the <div> with this code ?

I tried several codes to make the button appear and hide the <div> work but I still couldn't Ps: if i said wrong it is because i am brazilian and i don't speak english very well https://code.sololearn.com/WWt2xH0Ttn6N/?ref=app

20th Jul 2020, 6:04 PM
Games Para Nobs
Games Para Nobs - avatar
4 Answers
+ 1
Games Para Nobs , you should switch the style depending on current type if it is "block" switch it to "none" and vice versa. Look at the code. Hope it helps you. https://code.sololearn.com/WQi0cIR3q0MP/?ref=app
20th Jul 2020, 6:23 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 1
The button is in the div; you can't show the button and at the same time hide the div.
20th Jul 2020, 6:22 PM
PresidentOfYes12
PresidentOfYes12 - avatar
0
thank you guys!
20th Jul 2020, 6:27 PM
Games Para Nobs
Games Para Nobs - avatar
20th Jul 2020, 6:32 PM
Jayashree Nandan
Jayashree Nandan - avatar