I have this function, which I would like to be executed after 5 seconds:
$(document).ready(function() {
   $("#signInButton").trigger('click');
  });
Thank you
Use setTimeout() function:
$(document).ready(function() {
  setTimeout(function() {
    $("#signInButton").trigger('click');
  }, 5000);
});
                        Use setTimeout()
$(document).ready(function() {
  setTimeout(function() { 
    $("#signInButton").trigger('click');
  }, 5000); // for 5 second delay 
});
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With