Limit Character Input in HTML Textarea

Published on: February 4, 2017

Welcome to the 33rd Easy JavaScript tutorial, part of In the last tutorial, you learned how to count the number of characters in an HTML textarea. But now, let's go a little further. Let's make it so that no more than a certain number of characters are aloud in our text area.

Sure, this can be done using HTML5, but JavaScript is so much cooler! Plus, with JS, you can do so many more things with this limit check. The possibilities are endless. 

To fork the fiddle and follow along:

Remember to checkout the Resources section below for associated downloadable content, JSFiddle links, and other resources. Watch the video and follow along!