+ 2
What's wrong in this code?
8 Answers
+ 10
You could do something like give div2 a huge area covering most of the body.
https://code.sololearn.com/WJvM9pYPzRga/?ref=app
+ 2
And thank you HAPPY TOHE... too
+ 1
then....
+ 1
I want when a person clicked on the div1 it showes div2 and when clicked on the body div2 hides
+ 1
oh thansk so much bobbie
0
Yes correct so how can I fix it
0
you mean there is no way
0
when you click the body, div2 disappears.
when you click the button, div2 appears
the button activates first, then the body activates after, thus making it disappear.