Created
July 6, 2018 15:33
-
-
Save adamculpepper/b88415e65ba357717da0926845501768 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var checkExist = setInterval(function() { | |
if ($('#element').length) { | |
console.log("Exists!"); | |
clearInterval(checkExist); | |
} | |
}, 100); // check every 100ms | |
//source: https://stackoverflow.com/a/16149679 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment