Is it possible to use jQuery to read meta tags

Ankur picture Ankur · Jun 24, 2009 · Viewed 123.6k times · Source

Is it possible to use jQuery to read meta tags. If so do you know what the basic structure of the code will be, or have links to any tutorials.

Answer

MiffTheFox picture MiffTheFox · Jun 24, 2009

Just use something like:

var author = $('meta[name=author]').attr('content');