Either put the setTimeout calls inside the document.ready() function or put the function definitions outside it. In this case, looking at the placement of the code, I think you can just use:
<script> function hidesubmit(){ $("#submitButton").hide(); } function showsubmit(){ $("#submitButton").show(); }setTimeout(hidesubmit, 0);setTimeout(showsubmit, 2000);</script>
Can you be a bit more specific? I've put it in a jsFiddle and it works without a problem so maybe there is something else influencing your code or html page?
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
arielbf
ASKER
I've checked the jsFiddle and it is working. For some reason it is not working when I test my page. Here it is... delay1.html
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
Open in new window