javascript - Can i get a meta value with jQuery/JS? -


M is struggling to find any information on receiving meta values.

I have a locale set in the meta on some sites and I would like to use a centralized JS file, so for example I have to get the price

  & Lt; Meta name = "locale" id = "locale" content = "en_ZA" />   

> var m = $ ("meta [name = locale]"); Warning (m.attr ("content"));

Will this be enough?


Comments