Google などのその他のオプションをクリックすると、ドロップダウン メニューが必要になります。機能していますが、divの外側をクリックすると非アクティブになります。divの外側をクリックしたときにメニューを切り替えたい。
私のJavaScript:
$('#other').click(function() {
$(this).toggleClass('active');
$(this).next('.dropdown').toggle();
return false;
});
$('.dropdown a').click(function() {
return false;
});