<div class="input-wrapper">
<label>Tweet / Status</label>
<textarea id="txtInput" maxlength="280" rows="4" placeholder="What is happening?"></textarea>
<div class="counter-info">
<span id="charCount">0</span> / 280
</div>
</div>
Back to Snippets
Input Character Counter JS
Count the characters as your user types. We show a limit indicator that turns red when they type too much, so they know exactly how much space is left in the form field.
377