Show how many characters remaining in a HTML with pure JavaScript
View demo here.
# Get the latest snapshot
$ git clone git@github.com:pinceladasdaweb/VCountdown.git
Add the following javascript before your </body>
tag:
<script src="path/to/vcountdown.min.js"></script>
<script>
VCountdown({
target: '.countdown',
maxChars: 160
});
</script>
The script expect the following values:
Value | Description |
---|---|
target | Id or class of textarea. |
maxChars | Maximum of characters. Default is 140. |
IE 9+ ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ |
Check CONTRIBUTING.md for more information.
Check Releases for detailed changelog.