Using SugarCube 2 and just starting to get my feet wet. I've come across an issue I assume can be done more easily.
Doing a character creation screen of sorts, so I'm using <<replace>> to reflect choices on the fly. However, I started writing the variable in different places which I assumed I could simply use the same id to replace it again.
Perhaps an example of my script will better explain things.
<<link "Confirm">><<replace "#nickname">><<print $nickname>><</replace>><</link>>
So I then put this in different places:
You are <span id="nickname"><<print $nickname>></span>
...
People call you <span id="nickname"><<print $nickname>></span> because ...
But clicking the link only updates the first instance. How would I replace multiple instances of a span id or do I need to make more than one?