Abhimanyu Koul wrote:
how can i set the maximum number of chars in a textarea. i can only set columns
and rows.
Regards,
Abhimanyu Koul
FinEng Solutions (P) Ltd.
Mobile : +91 9819510090
The only way to do this would be with JavaScript. You'd do something
like this:
<textarea name="blah" cols="20" rows="5" onchange="checkLength(this, 50)">
</textarea>
<script type="text/javascript">
function checkLength(ta, maxLen){
if(ta.value.length>maxLen){
window.alert("This text area may only contain " + maxLen + "
characters, you tried to enter " + ta.value.length);
}
}
</script>
HTH
Bart.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]