Rob Desbois schrieb: > 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.
This is no bug. You need to use the value property (aka .val()) to retrieve textarea content (like any other form element). -- Klaus _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/