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 10:25 am
#240374
Shikkediel
Participant
With the code above, you’re missing some closing brackets…
.mouseup(function(e) {
e.stopPropagation();
});
});
</script>
I do believe that it should work otherwise. If not, posting the isolated problem on Codepen would be easiest.
Edit – you’d still need the other bit of code as well by the way. This extra listener will just take care of the fact that it will not respond to a click on the options link.