Reputation: 5791
Can someone tell me what I'm doing wrong with this script. I'm trying to get the script to work first, and secondly, I need the numbers to count up.
The script works in demo: http://jsbin.com/ayalav/3/edit#javascript,html,live
But I can't get it to work on my webpage: http://www.41q.org/admin/data/test.php
Thanks.
Upvotes: 0
Views: 55
Reputation: 8461
Simply wrap your JavaScript with:
$(document).ready(function() {
// your JavaScript goes here
});
Upvotes: 1