-1

i want a default layout user can use for textarea. and not a placeholder... sort of a pre-text type of thing. how would i approach this? ive tried using DOM to add innerHTML and innerText, cant find anything on google so hopefully someone here can help.

for example

Something like this

(This isnt a placeholder) its a layout for user to go off.

fortnite50
  • 29
  • 7

2 Answers2

1

You can set the text of a textarea programmatically by accessing the value property.

For instance:

document.getElementById("myTextarea").value = "Some default text";
Tristan
  • 3,530
  • 3
  • 30
  • 39
1

solution

<textarea>
JUST

Put your text inside Textarea 

Which ever way you like


</textarea>
Shirish Maharjan
  • 502
  • 3
  • 17