I need a drop-down menu when i click more options like Google. It's working but when I click outside the div it's inactive. I want to toggle the menu when I click outside of the div.
My javascript:
$('#other').click(function() {
    $(this).toggleClass('active');
    $(this).next('.dropdown').toggle();
    return false;
});
$('.dropdown a').click(function() {
    return false;
});
 
     
     
     
    