Techie Tips
| textarea: limit text input |
| Written by prettynerd |
| Thursday, 11 March 2010 10:00 |
|
add this function within the <script> tags of a html source file or add in a .js file:
function limitText(limitField,limitNum) {
then, call the function in the <textarea> onKeyDown and onKeyDown events:
<textarea onKeyDown="limitText(this,2000);" onKeyUp="limitText(this,2000);"> |



