Erik
Erik

Reputation: 5791

Not Counting the number of input's and textarea's with data

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

Answers (1)

tplaner
tplaner

Reputation: 8461

Simply wrap your JavaScript with:

$(document).ready(function() {

// your JavaScript goes here

});

Upvotes: 1

Related Questions