how to replace multi string with a array node in js

Posted by Rueta on Stack Overflow See other posts from Stack Overflow or by Rueta
Published on 2010-05-13T08:21:54Z Indexed on 2010/05/13 8:34 UTC
Read the original article Hit count: 266

Filed under:
|

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'....

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about array