In this small jsFiddle http://jsfiddle.net/PcWjA/22/ I am trying to make a ul go display:none when there’s a click on the body (or anywhere not on the list items) and that workst the first time there’s a click on the body. But after that the script seems to loop and shows/hides the ul to flash.
In this small jsFiddle http://jsfiddle.net/PcWjA/22/ I am trying to make a ul go display:none
Share
I have another answer
http://jsfiddle.net/FfBzT/