JORd
JORd

Reputation: 109

Parse xml through jQuery get what is inside tags

I have the code provided from the following link.

jsfiddle

I am trying to get the word "other" which is inside the tags. In the best case the alerted value is undefined. I can't find it neither with the parent(), nor the siblings() or from its children().

other = xml.find("CustomerLoss High").next().html()

Upvotes: 0

Views: 32

Answers (1)

JORd
JORd

Reputation: 109

I found it.

I had to do:

other =  xml.find("Reputation").siblings().next().prop("tagName")

Upvotes: 1

Related Questions