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?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…