setCustomValidity

The setCustomValidity() method of the HTMLTextAreaElement interface sets the custom validity message for the textarea element.

MDN Reference