views:

26

answers:

1

Hi all,

Im struggling to find any information on getting meta values.

I have a locale set in the meta on a few sites and would like to use a centralised js file so i need to grab the value from say for example

<meta name="locale" id="locale" content="en_ZA" />

hmmmm....

Many thanks

+1  A: 
var m = $("meta[name=locale]");    

alert(m.attr("content"));

Would that suffice?

Malabar Front
thanks, works perfectly!
c14kaa