[jQuery] AJAX > xml > new Option
Hey, it's my 1st time using XML so i cant manage doin this:
$.post("get_cli.cfm",{ status:"singles" },
function(xml){
var id = $("id",this).text();
var nome = $("nome",this).text();
$("#test").html(id + nome+"
");
});
}
//firebug
response:
<clientes>
<cli><span style="font-family: monospace;">
</span>
<id>284</id><span style="font-family: monospace;">
</span> <nome>Maria Villani Bezerra Bessa Uchoa</nome><span style="font-family: monospace;">
</span> </cli><span style="font-family: monospace;">
</span> <cli><span style="font-family: monospace;">
</span> <id>264</id><span style="font-family: monospace;">
</span> <nome>Maria Aparecida Viana Ferreira</nome><span style="font-family: monospace;">
</span> </cli>
</clientes>
header:
Date: Tue, 26 Sep 2006 16:29:38 GMT
Server: BlueDragon Server 6.2.1
Content-Type: text/xml
Connection: close
now i want to add a new option of each return <nome>...
in the docs i just find an each() example using $("<img>").each()
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/