how to replace multi string with a array node in js
- by Rueta
hi everyone!
i here a Work and i don't know how to do it.
i have a string here:
<div class="demotext">
<p>this is demo string i demo want to demo use</p>
</div>
i create the array variable for demo:
var demoarray = new array('a','b','c');
now i want replace 'demo' in string by array node, follow 'demo' one change to 'a' , 'demo' two change to 'b'....