Why isn't the slideToggle effect working | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Why isn't the slideToggle effect working

For some reason the jQuery 'slideToggle' isn't working can anyone pls help https://code.sololearn.com/WsicA9klfagn/?ref=app

31st Oct 2020, 10:06 PM
Coded Writer ⚔️
Coded Writer ⚔️ - avatar
2 Answers
+ 4
When your code reaches line 51 $("#dropDown") element has not loaded. It's outside of $(function(){}) Move it to the onload callback. Try to use a better code editor
1st Nov 2020, 2:29 AM
Kevin ★
+ 2
Kevin ★ I use Acode editor for android to code it, then pasted it here in sololearn and it stopped working. Although, I've been able to fix the error with some help, thank you.
1st Nov 2020, 1:33 PM
Coded Writer ⚔️
Coded Writer ⚔️ - avatar