Hello everyone. I'm having problems with jQuery .each. I have an xml like this:
<dados>
<usuarios>
<usuario id="1">
<login>usuario12</login>
<senha>21</senha>
</usuario>
<usuario id="2">
<login>usuario23</login>
<senha>23</senha>
</usuario>
</usuarios>
And I'm trying to read it like this with jQuery:
$(xml).find("usuarios").each(function() {
console.log($(this).find("usuario").text());
});
but the console shows me this way:
user1212user2323
Can you help me?