Menu
Hi, I use the below js to limit the amount of text allow in a textarea field. My problem is once the limit is reached I cannot delete anything that was type. How do I limit the textarea to a max length and still allow deleting when it reaches the max length?
[CODE]
function limitText(Object, MaxLen)
{ return (Object.value.length <= MaxLen);}
In the html
[code=html]
onkeypress=”return limitText(this, 250);”
Thanks.