I am creating a quiz in which I don't want the same question to pop up twice. If that happens, I want the page to update. So every time a question comes, the correct answer of the question will be put in a hidden div called #hiddencounter, with the following code:
$("#hiddencounter").append($("#correctans").html());
I now want to be able to update the page if two of the same answers suddenly appears in the #hiddencounter, or if there is a code that makes the append function recognize if it adds two of the same text strings?
Help is greatly appreciated!