How to rewrite this jQuery code by using Mootools?

Posted by Nikita Sumeiko on Stack Overflow See other posts from Stack Overflow or by Nikita Sumeiko
Published on 2010-04-10T15:47:54Z Indexed on 2010/04/10 15:53 UTC
Read the original article Hit count: 241

Filed under:
|

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?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about mootools