Answers for "js settimeout wait element"

0

js settimeout wait element

var checkExist = setInterval(function() {
   if ($('#the-canvas').length) {
      console.log("Exists!");
      clearInterval(checkExist);
   }
}, 100); // check every 100ms
Posted by: Guest on October-16-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language