Toggle button using toggle() function | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Toggle button using toggle() function

I'm trying to make a toggle button with toggle function () but after I tried it why ul I omitted with display: none; does not appear when I have added activeul class by using function toggle () but why not succeed please help thank you. https://code.sololearn.com/WZLZ905kEzG7/?ref=app

14th Jul 2018, 10:43 AM
Hafizd Jubaidir
Hafizd Jubaidir - avatar
3 Respostas
+ 2
ul.style.display = "block";
14th Jul 2018, 3:27 PM
CalviÕ²
CalviÕ² - avatar
+ 1
.activeul{ display:block !important; }
14th Jul 2018, 11:27 AM
CalviÕ²
CalviÕ² - avatar
+ 1
CalviÕ² is there any other way besides that?
14th Jul 2018, 1:48 PM
Hafizd Jubaidir
Hafizd Jubaidir - avatar