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
var m = $("meta[name=locale]");
alert(m.attr("content"));
Would that suffice?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With