2
I need every x seconds a li
my menu is hidden and I have this code:
$('.area-menu .close').click(function(){
delayed();
});
function delayed() {
var liMenu = $('.area-menu li').not('.marginless');
var time = 1000;
liMenu.each(function(){
setTimeout(function() {
console.log($(this));
}, time);
time += 1000;
});
}
But when I soon $(this)
he doesn’t return anything to me. How would I give a hide()
in each li
from my menu? And where am I missing?
I figured out what it is. And I kind of figured out why.
– dsantoro