У меня есть следующий кусок jquery, который слайды открывают подменю при нажатии на родительский элемент. Он отлично работает на хроме, но на firefox подменю не открывается. Есть идеи ?jQuery подменю не открывается в firefox
(function($) {
"use strict";
$('.menu-area ul li').on('click', function() {
if($(this).closest("li").children("ul").length) {
event.preventDefault();
$(this).children('ul').slideToggle(300);
}
else{
event.preventDefault();
$('.screen-washer').removeClass("right");
//$('.screen-washer').addClass("left");
//console.log($('a').attr('href'));
var linkLocation = $(this).children('a:first').attr('href');
//alert(linkLocation);
if (linkLocation.indexOf('#') >= 0) {} else {
setTimeout(function() {
//$('.preloader').fadeIn(300);
window.location = linkLocation;
}, 500);
}
}
});
})(jQuery);
Привет @Scott, вы можете поделиться HTML тоже? –