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:
<html>
<body>
<!-- the input field -->
<input type="text" maxlength="20">
<textarea maxlength="20"></textarea>
</body>
</html>
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