function lde(fld) { var f = $(fld); var s = f.html(); s = s.replace('#','@'); s = s.replace(/,/g,'.'); f.html(s); } // call at body onload function ldeAll() { $("._lde").each(function(){lde(this)}); }