Oh sorry, the code I gave you just modifies the loaded HTML and doesn't
write it back so this should work for you:

// This is to prevent two searches
var email = $('span.email');

email.html( email.html().replace('[monkeytail]', '@') );

Enjoy


On Thu, Jun 19, 2008 at 8:33 PM, IschaGast <[EMAIL PROTECTED]> wrote:

>
> > $('span.email').html().replace('[monkeytail]', '@');
>
> I was also thinking it should be something like this, but this doesn't
> work...
> This should be possible some way I hope.
>
> > And you probably also need:
> >
> > $('span.email').html().replace('[dot]', '.');
> >
> > On Thu, Jun 19, 2008 at 12:26 AM, IschaGast <[EMAIL PROTECTED]>
> wrote:
> >
> > > I have this: <span class="email">contact [monkeytail] yabadabadoo
> > > [dot] .com</span>
> > > Now I want to replace the text [monkeytail] with some other text.
> >
> > > Is there a simple solution that I can get the monkeytail text and
> > > replace it with something else?
> >
> > --
> > Isaak Malik
> > Web Developer
>



-- 
Isaak Malik
Web Developer

Reply via email to