If you select the text area and use the text() function on it, you'll get a string back. You can do whatever you want with it from there and then just reinsert it again, thats one option at least
cheers Michael Lawson Development Lead, Global Solutions, ibm.com Phone: 1-276-206-8393 E-mail: mjlaw...@us.ibm.com 'Examine my teachings critically, as a gold assayer would test gold. If you find they make sense, conform to your experience, and don't harm yourself or others, only then should you accept them.' From: Johannes Theile <jo...@theile.org> To: "jQuery (English)" <jquery-en@googlegroups.com> Date: 05/19/2009 09:56 AM Subject: [jQuery] Adding/Removing text on texarea Hi, I have a list of text-snippets which should be inserted into a textarea, separated by a comma. When I click the same text-snipped again, it should be removed from the textarea. I managed to to implement the "inserting" with the following code, but for the removal I have no idea. $("a.tags2textarea").click(function() { $("textarea.txt_tags").append($(this).html()+", "); return false; }); Maybe someone can help me. Best regards, Johannes
<<inline: graycol.gif>>
<<inline: ecblank.gif>>