Thanks John, worked fine here. :)
I was looking for something like that.
On 12/15/06, John Resig <[EMAIL PROTECTED]> wrote:
You can try using :contains() and [...]
$("company[id:contains(5)]")
That effectively means: Find all company elements that has an element
inside of it (named 'id') that contains the text '5'.
--John
On 12/15/06, Pje <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I need to manipulate a XML that i receive from a request. The XML looks
> like:
>
> <root>
> <company>
> <id>3</id>
> <name>foo</name>
> </company>
> <company>
> <id>5</id>
> <name>bar</name>
> </company>
> </root>
>
> There is a way to get the node company that have a specific id?
>
> $('company:nth('5')', xml).text(); will return the 5th node... what i
need
> is the node with id 5. Any tips?
>
> _______________________________________________
> 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/