I have the below global jQuery function stored, but on page load, I want to execute it after a 1000 delay. Is there something wrong with my syntax? I know the delay always goes
You can add timeout function in jQuery (Show alert after 3 seconds):
$(document).ready(function($) { setTimeout(function() { alert("Hello"); }, 3000); });