Ah, yes, this is broken in the current release because I only draw up the HTML sections for the currently visible tab – to speed up the loading of large forms.
I’ll try to figure out a good solution to keep backwards compatibility, but in the meantime, you can fix it by adding a placeholder in your span like this:
<span class="exerciseId">{{var:exerciseIdVariable}}</span>
And then change your code snippet from this:
jQuery("span.exerciseId").html(qres["exerciseId"].spilt(".")[0]);
to this:
var exerciseIdVariable = qres["exerciseId"].spilt(".")[0];
This will ensure it is updated as soon as the HTML section is made visible.
Alexander