jquery find and replace multiple items
- by client
I have a monthly table that needs to be translated for each languages
Something like this (doesnt work obviously)
$('.lang-en #monthly th').each(function() {
var text = $(this).text();
$(this).text(text.replace('Tam', 'Jan'));
$(this).text(text.replace('Hel', 'Feb'));
$(this).text(text.replace('Maa', 'Mar'));
…