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.
Try
txt.replaceText(RegExp(elem,"g"), '');
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.
Try
txt.replaceText(RegExp(elem,"g"), '');
精彩评论