Oudin
Oudin

Reputation: 43

How to get jQuery countdown plugin to work

I am using the jQuery countdown plugin and some how i just can't get it to work. the documentation on the plugin is not that helpful. I got to implement the basic/minimal version but after that I'm catching my tail to figure out the plugin.

I'm trying to create two things:

  1. A time elapsed counter (count-up timer) which starts from 0hr 0min 0sec
  2. A count down Timer (example from 1hr 30min 0sec) to 0hr 0min 0sec

Upvotes: 0

Views: 1862

Answers (1)

bla
bla

Reputation: 5480

I tried the basic countdown and it works.

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <style type="text/css">
    @import "css/jquery.countdown.css";

    </style>

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script type="text/javascript" src="jquery.countdown.js"></script>

    <script type="text/javascript">
        $(function() {
            var austDay = new Date();
            austDay = new Date(austDay.getFullYear() + 1, 1 - 1, 26);
            $('#CountDown').countdown({ until: austDay });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="CountDown">

    </div>
    </form>
</body>
</html>

Upvotes: 2

Related Questions