uma boa interface para mostrar o limite de caracteres de um campo!!!
JavaScript PHP
Switch branches/tags
Nothing to show
Pull request Compare This branch is 4 commits behind lleitep3:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.rst
index.html
index.php
maxLengthBox.js

README.rst

Bom, surgiu a necessidade e eu decidi transformar em um plugin!!!!

bem simples,

você declara um elemento que seja "<input type=text"> ou "<textarea />" e boa!!!!

exemplo:

index.html

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"> </script> <script src="maxLengthBox.js"></script>

<script type="text/javascript">
$('input').maxLengthBox({'fontColor': '#00ff00'}); $('textarea').maxLengthBox();

</script>

<input type="text" maxlength="20"> <input type="text" maxlength="40"> <input type="text" maxlength="10"> <textarea maxlength="5"></textarea>