Add a required attribute for textarea.
Implements a maxlength attr.