Oliver Evans
Oliver Evans

Reputation: 989

jQuery Countdown - Event when countdown ends

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

Answers (1)

Ivan Blinkov
Ivan Blinkov

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

Related Questions