I want to print the value of a variable in a text area (in HTML).
var msg = trigger.find('span::last');
it is this msg variable's content that i want to display in a text area. How can i do this?
Thanks & regards!
I want to print the value of a variable in a text area (in HTML).
var msg = trigger.find('span::last');
it is this msg variable's content that i want to display in a text area. How can i do this?
Thanks & regards!
Assuming it is jquery that you are using. You can set the value of your text area with something similar to the following code:
var msgContent = msg.text();
$("#mytextarea").val(msgContent);
Hope this helps.