I'm trying to change the text in the anchors as follows:
for (var i = 0; i < anchors.length; i++) {
...
anchors[i].text = anchors[i].text + "+";
}
I tried alternative methods like concat
and append
but nothing works.
anchors[i].innerHTML
helped but the code is called on DOMContentLoaded and I want to add only "+" string, instead of it I'm adding unpredictable sequence of "+"* e.g. "++++++++"
thank you for help