Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  12] [ 6]  / answers: 1 / hits: 27295  / 9 Years ago, fri, july 31, 2015, 12:00:00

So I got this button that I need to show after 5 second. I have no experience in jquery or javascript



HTML Code



<body>
<p>You need to wait 0 before you can proceed</p>
<button type=button id=proceed>proceed</button>
</body>


This is the best that I could come up with after some reading in w3school



<script>
$(document).ready(function(){
$(#show).wait(function(){
delay 0500 $(proceed).show();
});
</script>


Can anyone help me?


More From » jquery

 Answers
11

If you don't want to use jQuery, then use the setTimeOut method as answered by others.



<head>
<script type=text/javascript src=//code.jquery.com/jquery-1.10.2.js></script>
<script type=text/javascript>
$('#proceed').delay(5000).show(0);
</script>
</head>
<body>
<p>You need to wait 0 before you can proceed</p>
<button type=button id=proceed style=display: none;>proceed</button>
</body>

[#65588] Wednesday, July 29, 2015, 9 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
harrisa

Total Points: 514
Total Questions: 93
Total Answers: 93

Location: Ghana
Member since Sun, Mar 27, 2022
2 Years ago
;