Jun 5, 2012

HTML Limit input and textarea charachters using maxlength

After a tutorial on using php tuo limit charachter length i decided to make one for html input fields.
It is an easy and simple tutorial, we will use maxlength
Lets move on:
<!-- the input field -->
<input type="text" maxlength="20">
<textarea maxlength="20"></textarea>
As you can se the input and textarea boxes are limited up to 20 charachters.
Short tutorial :) hope it may help someone :D

No comments:

Post a Comment