In struts 1 tags for html:textarea here
I do not see a maxlength attribute. How can i restrict the user from entering more than 100 characters? Also why did struts 1 omit such a basic attribute?
Add the attribute using JS.
Put something like this after your textarea:
<script type="text/javascript">
document.getElementById('textarea-id').setAttribute('maxlength', '512');
</script>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With