+ 1

How to count the words remaining in textarea

17th Aug 2018, 7:48 AM
Aditya Raj
Aditya Raj - avatar
4 Respuestas
+ 1
sorry! your code is not working
17th Aug 2018, 8:00 AM
Aditya Raj
Aditya Raj - avatar
+ 1
after setting character limit in texarea if someone type in text box , i want to show how many character left
17th Aug 2018, 8:58 AM
Aditya Raj
Aditya Raj - avatar
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>
17th Aug 2018, 7:54 AM
Paul Grasser
Paul Grasser - avatar
0
You want to get the total number of characters in the text area?
17th Aug 2018, 8:44 AM
Dlite
Dlite - avatar