Menu
before
var str = “the The the The Lord of the Rings: The Fellowship of the Ring”;
var result = str.replace(/The/gi, “Ze”);
after
var str = M1.value;
————————–(Textbox1)——(Textbox2)
var result = str.replace(/ +’M1.value’+ /gi, “+M2.value+”);
I can’t get my M1.value and M2.value textbox’s to work in the replace str.
all I know is I am leaving out ‘ ” ‘ ‘ parentheses or something like that?
Thanks for any help ben