Set value of textarea in jquery
Posted
by GONeale
on Stack Overflow
See other posts from Stack Overflow
or by GONeale
Published on 2009-01-06T06:03:59Z
Indexed on
2010/04/08
13:43 UTC
Read the original article
Hit count: 218
jQuery
I am attempting to set a value in a textarea field using jquery with the following code:
$("textarea#ExampleMessage").attr("value", result.exampleMessage);
The issue is, once this code executes, it is not altering the text in the textarea?
However when performing an alert($("textarea#ExampleMessage").attr("value"))
the newly set value is returned?
© Stack Overflow or respective owner