查找并替换不确定ID的div中的内容

时间:2012-11-26 02:31:43

标签: javascript replace

  

可能重复:
  How to replace text in html document without affecting the markup?

这应该相当简单,我似乎无法让它发挥作用 我想采取:

<div>Other text here XYZ more text</div>

并替换为获取:

<div>Other text here ABC more text</div>

我不知道关于div的id,class或任何内容,我不会意外地替换属性。只是中间的文字。没有Jquery。

0 个答案:

没有答案