HTMLTextAreaElement: placeholder property
The placeholder
property of the HTMLTextAreaElement
interface represents a hint to the user of what can be entered in the control. It reflects the <textarea>
element's placeholder
attribute.
Value
A string.
Examples
js
const textareaElement = document.getElementById("comment");
console.log(textArea.placeholder);