<script type="text/javascript"> $(document).ready(function () { $('.time-remaining').each(function () { count_down($(this)); }); }); </script>