Thursday, January 7, 2010

Setting Maxlength Of Textarea Using JavaScript

==================================

function SetMaxLength(Object, MaxLen) {
return (Object.value.length < MaxLen);
}
==================================
Here Object is the Id of Textarea and MaxLen is the maximum no of characters allowed.

No comments:

Post a Comment