At first, the textarea has 'text content' (inside the tags), and it's shown inside. When you click the buttons, it updates this text content.
*But*, when you edit it manually, you are updating the textarea's VALUE attribute, not the the text inside. When you have both, the value attribute supersedes the text content. If you inspect the textarea using Firebug you will see that the text content is still being changed, it's just not being shown. Changing the function to use val() instead has it working perfectly. http://jsbin.com/ozoqi - ricardo On Oct 18, 4:10 pm, Balazs Endresz <[EMAIL PROTECTED]> wrote: > In your case the proplem is that you're using .text() instead > of .value() on the textarea. The strangest thing is why does .text() > even work unless you change the content? It's quite misleading because > it shouldn't work on input elements:http://docs.jquery.com/Attributes/text > > On Oct 18, 6:09 pm, RotinPain <[EMAIL PROTECTED]> wrote: > > > I met a similar issue, but i can determine it happens only with > > Firefox (3.0.3). > > The variable selector seems to be the problem. > > > I explained the whole thing here:http://jsbin.com/aciwi > > > in short, > > $("[id='" + variableId + "']").text( variableValue ); won't always > > work with FF (it works in first steps) > > but > > document.getElementById( variableId ).value = variableValue; will > > always work > > > I can't succes in making my code working with jsbin (i tried several > > ways to) because the code use ajax with xml and I can't make the > > relation between them. > > > You can view the jquery code here:http://jsbin.com/aciwi > > That should load a sample xml here :http://jsbin.com/ebupo > > But it does not > > > Anyway, i posted the same code here at my own ftp: > > jquery/html page:http://rotinpain.ifrance.com/tests/test4xml.html > > xml data source:http://rotinpain.ifrance.com/tests/test4xml.xml > > > Let me know if you see something that i didn't. i'm fairly new to > > jquery but i think the code is ok.