Goal
Update UI to display a live character count.
Project
You’ve written 0 characters.
View Source
(function() { let elText = document.querySelector( "#text" ); let elCount = document.querySelector( "#character-count" ); elText.addEventListener( "input", e => { elCount.innerText = e.target.value.length; }); })();
Projects
- Toggle Password Visibility
- Toggle Multiple Password Fields
- Toggle Passwords in Multiple Forms
- Character Count
- Character and Word Count
- Announcing the Count
- Random Ron
- Random Ron Without Duplicates
- New York Times Top Stories
- New York Times Multiple Categories
- Sanitizing the NYT API Data
- Monster Shuffle