mirror of
https://github.com/zyqunix/tools.git
synced 2025-07-06 14:30:31 +02:00
add char counter
This commit is contained in:
parent
9ed3ee790e
commit
825c90e3b1
3 changed files with 51 additions and 0 deletions
6
character/index.js
Normal file
6
character/index.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
const textElem = document.getElementById('input');
|
||||
const countElem = document.getElementById('count');
|
||||
|
||||
setInterval(() => {
|
||||
countElem.innerText = textElem.value.length;
|
||||
}, 100);
|
Loading…
Add table
Add a link
Reference in a new issue