=)

i want to fill an <select size=6>.
each new option would have value=<id>.text() ....><nome>.text()</option>



2006/9/26, Rey Bango < [EMAIL PROTECTED]>:
I just saw "nome" in your XML result. So, now just explain a little
further what your end result should be.

Rey...


Rafael Santos wrote:
> 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/

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to