tags:

views:

57

answers:

1

Hello all, I need script to append text or delete all matched elements if there are any in textarea. I tried this: http://pastie.org/789631 What's wrong there? Thanks.

+1  A: 

Try

txt.replaceText(RegExp(elem,"g"), '');
S.Mark