How can I get the href of a <link> tag using jQuery?

Posted by Matt on Stack Overflow See other posts from Stack Overflow or by Matt
Published on 2010-03-27T21:36:01Z Indexed on 2010/03/27 21:43 UTC
Read the original article Hit count: 402

Hi,

I've seen lots on how to do this with an tag, and I have no problem doing it with that one, but I can't seem to retrieve the href attribute of a <link> tag.

Even trying to grab the link tag at all:

alert($("link").length);

Gives 0.

Any ideas?

Thanks,
Matt

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about link-tag