[jQuery] a simple XML value change

[jQuery] a simple XML value change


hi,
I've seen in the forum many requests that take and show parameters coming
from XML.
But what about modifiying these values dynamically?
I tried something like this:
$("p").click(function(){    
         $.ajax({        
type: "GET",
         url:"arxiu.xml",
dataType: "xml",    
//if we suceeded in getting the XML, let's change it                
success: function (xml) {    
var grup = $("Name:contains('user')",xml);    
var item_text=(grup.text());
         alert (item_text); //yes,it shows the value I want to change

         $("#grup").attr("new_value",item_text);
//I have tried also, with no success: var
item_text="new_value";
Thanks,
Pere
--
View this message in context: http://www.nabble.com/a-simple-XML-value-change-tp14487516s27240p14487516.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.