Home › Forums › JavaScript › Close menu on click of Options button and outside of container › Reply To: Close menu on click of Options button and outside of container
April 10, 2016 at 12:29 pm
#240403
Shikkediel
Participant
I made a typo in this line in any case, while shortening the code somewhat :
if ($(!(e.target).closest('.bbp_custom_links_submenu').length) {
Should be :
if (!$(e.target).closest('.bbp_custom_links_submenu').length) {