views:

3322

answers:

3

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.

+12  A: 

Just use something like:

var author = $('meta[name=author]').attr("content");
MiffTheFox
+2  A: 
$("meta")

Should give you back an array of elements whose tag name is META and then you can iterate over the collection to pick out whatever attributes of the elements you are interested in.

illvm
A: 

try this plugin http://code.google.com/p/wt-plugins/wiki/wtMeta

code90