I have a <textarea> which I want to read / write.

I have been testing with this:
    alert($("#the_text_area").text());
    $("#the_text_area").text('different text');

That works as expected until the <textarea> contents are modified by the user. 
From that point, .text() continues to return the unmodified text, and 
text('text') has no effect.
This fault occurs in Firefox 2.0.0.2, but not in IE6.0

I've discovered I can use .val() which will work in both. Should it?
Is this a Firefox bug or am I going about this the wrong way?
Any advice welcome.

TIA
--rob


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to