Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: text counter
09-08-2011, 12:13 PM #1
- Join Date
- Nov 2010
- southwestern USA
- Thanked 34 Times in 33 Posts
Hi i am using a text counter for my textarea, the problem is that when a member edits their profile, unless they actually keydown inside the text area then it will not load their text in the counter.
I know the reason is the onkey deal, but im not sure how to load the text in the counter on page load. I guess on register the onkey is fine becaue its usually blank, but on edit i need it to load the number of chars in the counter automatcally. It loads the text fine on page load, it just does not increment the counter unless you keydown inside the box.
<textarea class="inputl" rows="8" name="txtComment" cols="59" tabindex="15" onKeyDown="textCounter(this.form.txtComment,this.form.remLentext);" onKeyUp="textCounter(this.form.txtComment,this.form.remLentext);"> Comment data here </textarea>
Last edited by durangod; 09-08-2011 at 12:41 PM.