No, isMaxLength doesn’t work with multiline textbox.
You can use, following function to achieve the said functionality…
function isMaxLength(txtBox, length)
return (txtBox.value.length <= length-1);
Which can be used with multiline textbox as below…
Asked In: Many Interviews |