Count characters in field dynamically
问题 I would like to count characters in a form textarea field dynamically, I know there is a similar question about this but I am wondering if it can count from a certain number towards 0, as example while writing a tweet on Twitter. This code could be in javascript, PHP, it doesn't really matter to me. 回答1: This should help you out. Here is a tutorial regarding usage - a demo is found below: Usage: <input name="text" onKeyDown="CountLeft(this.form.text, this.form.left,50);" onKeyUp="CountLeft