Link to home
Start Free TrialLog in
Avatar of maqskywalker
maqskywalker

asked on

trigger button to click button onlye once after 5 seconds

On my page in jquery page load I have this code which clicks this button every 5 second using this code:

            // triggers click every after 5 seconds 
            setInterval(function () {
                ("#Button1").click();
            }, 5000);

Open in new window


How do I revise it to only click the button only once.  So it should click it only once and that will occur 5 seconds after page load.

Any one know the syntax?
I'm using jquery 1.10.1
ASKER CERTIFIED SOLUTION
Avatar of Rainer Jeschor
Rainer Jeschor
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial