Reputation: 989
Im using the code below to display a countdown timer on a webpage. If possible, how can I show content when the count down reaches zero?
Regards
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript" src="../js/countdown.js"></script>
<script>
$(document).ready(function(){
$("#countdown").countdown({
date: "09 november 2012 12:00:00",
format: "on"
},
function() {
// callback function
});
});
</script>
Upvotes: 1
Views: 5297
Reputation: 2564
If you are using this jQuery countdown, the thing you want can be achieved by specifying the onExpire callback in options.
Upvotes: 1