How To Do Multiple Settimeout Jquery In A Class?
i have a class called .content , this content has an attribute called .data-time, i want to hide all element where it has .content class with setTimeout() function, anybody can hel
Solution 1:
In your setTimeout function, this is the window. Try this instead:
$(".content" ).each(function(){
        var $this = $(this);
        var time = $this.data("time");
        setTimeout(function() {            
            $this.hide("slow");
        }, time);
    });
Post a Comment for "How To Do Multiple Settimeout Jquery In A Class?"