0
Code not Working Why? JS
Variable.style.display does totally nothing https://code.sololearn.com/WEm88EX7Xxfz/?ref=app
5 odpowiedzi
+ 3
https://code.sololearn.com/WtXvNScYA51Z/?ref=app
+ 2
Hello. For display, it is not "show". You should use instead "block"
And at the else, use "none"
+ 2
Like this:
function myFunction(){
if (x.style.display === "none")
{
x.style.display = "block";
} else {
x.style.display = "none";
}
}
+ 1
BroFarOps Thank you i love you i was so dumb
0
💜 Alex Tusinean 🍇 Thank you very much for answering!!