开发者

Search and replace all elements

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"), '');
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜