character limit/countdown error
Posted: Thu Mar 17, 2011 9:37 pm
I'm using the following code on forms on two sites, it works fine on one, on the other, it doesn't. The only difference is the name of the field (it's company_desc on one site and company_description on the other)
Can anyone see anything that I may be missing here?
Can anyone see anything that I may be missing here?
Code: Select all
<textarea name="company_description" cols="48" rows="6" onkeydown="limitText(this.form.company_description,this.form.countdown,600);" onkeyup="limitText(this.form.company_description,this.form.countdown,600);"></textarea><br>
<p><i>(Maximum characters: 600) - You have <input readonly="readonly" name="countdown" size="3" value="600" type="text"> characters remaining.</i></p>