SetTimeout not working in Chrome

This setTimeout works fine in Firefox, but nothing happens in Chrome in timeoutoutTrigger ever, including a warning. Any ideas?

var $this = $('.active-more'); function timeoutTrigger() { $this.closest(".container").nextAll(".container:first").find(".description:first").removeClass('hide'); $this.closest(".container").nextAll(".container:first").find(".back:first").find("img.portfolio").remove(); alert("is this thing on?"); } setTimeout(function(){timeoutTrigger()},400) 
+8
javascript google-chrome settimeout
source share
1 answer

Translate the setTimeout statement to the following: setTimeout(timeoutTrigger,400); The one you wrote is when the function you are calling has a parameter. In addition, you are missing a semicolon.

+5
source share

All Articles