I want to improve the input theme of the "Meta Description" and "title" tags in WordPress, and I would like to add a piece of text that evaluates the text input field after each keystroke and updates the "target character count" fields "like twitter."
For example, in the โMeta Descriptionโ field, the number of target characters is 160. Thus, if the field is empty, the number will be 160. As the user types, the number decreases with each character added to enter the field until it is will not reach zero.
If the counter is larger than the target, the numbers are written in red with a minus sign in front (again, like twitter).
Is there an existing jQuery script for this?
<label class="screen-reader-text" for="excerpt"> Post Excerpt (Meta Description) <span class="counter">150</span> characters* </label> <textarea rows="1" cols="40" name="excerpt" tabindex="6" id="excerpt"></textarea>
Regedit
source share