+ 1
How to count the words remaining in textarea
4 odpowiedzi
+ 1
sorry! your code is not working
+ 1
after setting character limit in texarea if someone type in text box , i want to show how many character left
0
<textarea id="area"></textarea>
<script>
var words = document.getElementById("area").value
words = words.split(" ")
words_amount = words.length
//words_amount is the amount of words left.
</script>
0
You want to get the total number of characters in the text area?