gkpo
gkpo

Reputation: 2672

Reading <media:thumbnail /> tag with jquery

I'm using jquery to read rss tags and their contents. Accessing simple tags like <title> is pretty simple:

$(this).find('title').text();

But the thing is rss feeds have funny tags like:

<media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/52693000/jpg/_52693997_011963628-1.jpg" />

And of course, $(this).find('media:thumbnail'); is not working... Any idea? Thanks in advance!

Upvotes: 2

Views: 2333

Answers (1)

Val
Val

Reputation: 17532

$('media\\:thumbnail');

it is called name space the colon thingy and you would need to escape the colon because the colon is also used for things like :empty, :checked etc...

Upvotes: 6

Related Questions