function limit(obj, length)
{
var maxlength = length;
if (obj.value.length >= maxlength) {
alert("Please note maximum characters exceeded, maximum length is 2000");
}
}
function limitlength(obj1, length1) {
var maxlength = length1;
if (obj1.value.length >= maxlength) {
obj1.value = obj1.value.substring(0, maxlength);
}
}
No comments:
Post a Comment