0
我想创建一个菜单,当你点击页面上的任何其他地方div将被隐藏。这在一切,但Firefox的作品。在Firefox中,当你点击该部分中的链接之一时,它不会进入链接,它只是关闭div。JavaScript点击和隐藏问题火狐
代码:
$(document).mouseup(function(e){//removes menu when clicked on any other part of page
if($(".menuone:visible").length > 0 ){
$('.menuone').hide();
}
});
HTML:
<div class="menuone">
<div class="col1">
<ul><li>Example link</li></ul>
</div>
</div>
感谢这个意愿,但是这确实现在的工作 – meohmy
您是否设置了一个函数来实际设置变量? – will
不只是在顶部的编码 – meohmy