Reputation: 6660
I have this XML :
<computers>
<computer sid="1353323295303">
<description>TEST</description>
<match.country result="match" value="FR EU">
<match.country result="match" value="EU"></match.country>
</match.country>
</computer>
</computers>
How can I select all tags starting with "match."
Thank you
Upvotes: 0
Views: 96
Reputation: 144689
You can use filter
method:
var $match = $('computers *').filter(function() {
return this.localName.indexOf('match') === 0
})
Upvotes: 1