How can I set an ID for a text which I want to modify later in javascript.
Example:
<hr>
<b>Text:</b>
This is my text to modify.
<hr>
<b>Next Text:</b>
AAA
....
I want to modify the text "This is my text to modify." in javascript. I need something like the code below, but how can I set an id for the text I need to modify?
document.getElementById('?').innerHTML="modified text";
Thanks for your help