When, in the quiz settings, "Attempts allowed" is set to a number greater than one and "Each attempt builds on the last" is set to "yes", students are allowed to re-attempt the quiz but if they do, they cannot see in the question blocks which questions they got correct because,
on a re-attempt, the question blocks initially displays only "Not changed since the last attempt".
This message can be modified so that questions answered correctly or incorrectly on the previous attempt are marked as such in the question blocks on the new attempt. This modification is done here with a java script on the user side. The server-side
source code is in no way changed. No access to site administration is required. The java script is short, about 40 lines, placed in a description question at the top of the quiz and can be easily modified.
If you try the example below, you will notice that the question blocks display the message "Not changed since the last attempt". It is simply because attempts are not deleted on this site, so your first attempt is actually a re-attempt. If you started
with a fresh quiz, that is to say without any attempt, the question blocks would be displayed as usual.
You will find the XML file with the example. Do not hesitate to download it in order to try the example on your site. In this way, you can delete any attempt and start with a fresh quiz.
Also note that the custom messages in the question blocks are reset automatically after about 1 minute or less. This parameter can easily be modified by editing the HTML code of the text of the description question.