I have a jQuery code, but need it working by using Mootools:
if ( $("span.mailme").length ) {
var at = / AT /;
var dot = / DOT /g;
$('span.mailme').each(function () {
var addr = $(this).text().replace(at, '@').replace(dot, '.');
$(this).after('<a href="mailto:' + addr + '">' + addr + '</a>');
$(this).remove();
});
}
Is there anyone, who know as good Mootools as jQuery?