Thankz Klaus!!!!

Lots of alerts showed here.. lol I didnt expect. haha

Now it's working fine =P

2006/9/26, Klaus Hartl <[EMAIL PROTECTED] >:


Rafael Santos schrieb:
> Yeah, ive done so many copy n paste that i got everything mixed huuhuuh
>
> But could yall explain to me how to use each() to the <cli> nodes to
> work with it ?


From the API docs: "Execute a function within the context of every
matched element."

In other words you pass each a function as argument in which the this
keyword refers to the iterated element of your jQuery object. puh, an
example is easier:

$.post("get_cli.cfm", { status: "singles" }, function(xml) {

      $("cli", xml).each(function() {
          alert(this.nodeName); // "cli"

          var nome = $(this).find('nome').text();
      });

});


-- Klaus

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

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

Reply via email to