+ 2

Help me in js/c

please make a JavaScript program on HTML that can get data from outside (I mean from the input tag) and count the length of the sentence.

7th Apr 2018, 4:13 PM
Md.Danial Islam
Md.Danial Islam - avatar
1 Answer
+ 9
<input type="text" oninput="console.log(this.value.split('').length)"> Assuming length means no of characters (including spaces).
7th Apr 2018, 4:17 PM
Swapnil Srivastava
Swapnil Srivastava - avatar