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+"<br>");
            });
        }

//firebug
response:
<clientes>
  <cli>
    <id>284</id>
    <nome>Maria Villani Bezerra Bessa Uchoa</nome>
  </cli>
  <cli>
    <id>264</id>
    <nome>Maria Aparecida Viana Ferreira</nome>
  </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
[email protected]
http://jquery.com/discuss/

Reply via email to