JP Hochbaum
JP Hochbaum

Reputation: 647

Textarea.textcontent is not changing

I have a select object whose onChange event is calling this method:

 function universeChange()
 {

var select = document.getElementById("universeSelect");


form = document.getElementById("textAreaUniverse");

//form.textContent = universeDict[select.selectedIndex].value;
form.textAreaValue = universeDict[select.selectedIndex].value;

 }

When I am debugging in developer tools the textContent value changes as it should change but the clients end doesn't reflect the new values. I have this feeling that I am not using the correct method to change the value of the textarea?

Upvotes: 2

Views: 2624

Answers (1)

aholtry
aholtry

Reputation: 2753

Have you tried using the .value attribute to change the text?

https://www.w3schools.com/jsref/prop_textarea_value.asp

Upvotes: 6

Related Questions