I would like to add setTimeout function will run every 5 seconds to check if jQuery is defined or up to 1 minute.
$(document).ready(function()
{
setInterval(function() {
setInterval(function() { alert("Message to triggred 5 seconds"); }, 5000);
alert("Message to triggred 60 seconds");
}, 60000);
});
tried to use setTimeout
and clearTimeout
also, but not enough.