Can someone tell me why my navbar is not working. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can someone tell me why my navbar is not working.

https://code.sololearn.com/Wo6zQ24A0Vl5/?ref=app

3rd Oct 2020, 11:17 AM
Ultimate Sakshamz
8 Answers
0
Ive added an event listener to the menuList. And also change the == to = function togglemenu(){ if(menuList.style.maxHeight == "0px") { menuList.style.maxHeight = "130px"; } else { menuList.style.maxHeight = "0px"; } } menuList.addEventListener("click", togglemenu , false);
3rd Oct 2020, 11:42 AM
Arturop
Arturop - avatar
+ 1
So can you please give me the code
3rd Oct 2020, 11:44 AM
Ultimate Sakshamz
+ 1
Thank you thank you so so so much sir ☺️ thank you
3rd Oct 2020, 11:59 AM
Ultimate Sakshamz
0
Please give me
3rd Oct 2020, 11:50 AM
Ultimate Sakshamz
0
Please give me the code
3rd Oct 2020, 11:53 AM
Ultimate Sakshamz
0
Dont forget the equal to assignment. == to =
3rd Oct 2020, 11:54 AM
Arturop
Arturop - avatar
0
Can you please do that
3rd Oct 2020, 11:56 AM
Ultimate Sakshamz