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 9:31 am
#240372
Anonymous
Inactive
Hello,
The menu does not open at all now. I think there might be an error in the code.
Full code:
<script type="text/javascript">
jQuery(document).ready(function($) {
$('.bbp-admin-links:even').css({position: 'absolute', right: '380px'});
$('.bbp-meta ul.bbp_custom_links_menu li.parent > a').click(function(e) {
$(this).next('.bbp_custom_links_submenu').toggle();
e.preventDefault();
})
.mouseup(function(e) {
e.stopPropagation();
});
</script>
Thanks.