Hi,
So I'm kind of new to JavaScript and I need to create a script that will grab the code I paste in a HTML page and do a few find and replace
When I use this code
Code:
test1 = text.replace(/test1/, "<abbr>test_new1</abbr>");
document.getElementById('input_output').value = test1;
it works for but as soon as I add another line like this
test1 = text.replace(/test1/, "<abbr>test_new1</abbr>");
document.getElementById('input_output').value = test1;
test2 = text.replace(/test2/, "<abbr>test_new2</abbr>");
document.getElementById('input_output').value = test2;
it doesn't work for some reason.
It's very unfortunate because I need to do this like 30-40 times.
I included my file so it'll be easier for you.
This is just a small application to help my team internally it's nothing that'll go online
Thanks!!!!!!!