How to hide a div clicking outside menu bar? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to hide a div clicking outside menu bar?

I have this code: https://code.sololearn.com/WPNp55x4bx8U/# so I need the div to disappear when I click on another part of the page, please help me

29th Jun 2020, 4:47 AM
Lorenzo Sandoval
Lorenzo Sandoval - avatar
2 Answers
0
Lorenzo Sandoval there are many <div> specify which div?
29th Jun 2020, 6:10 AM
Sudarshan Rai
Sudarshan Rai - avatar
0
Sorry..the <div> with class "oculto"
6th Jul 2020, 6:02 AM
Lorenzo Sandoval
Lorenzo Sandoval - avatar