Stop answer box from going clear once guessed

Submitted by fraaab on August 11, 2025
Hi everyone just a quick question today:

If I have formatted an answer box to have a background colour, how do I stop the cell from going clear once the answer is guessed?

A quiz I'm working on uses the information in certain guessed cells later on in the quiz - I need those cells to keep their background colour after being guessed.

Can anyone help me? Thanks :)

8 Comments
+2
Level 52
Aug 11, 2025
You might need HTML, but I don't know it :(
+3
Level 16
Aug 11, 2025
You'll have to use CSS for each box. dunno exactly how but You'll use something like background color to keep it that way after the answer is guessed (also !important so the jetpunk style doesnt overide it)
+1
Level 65
Aug 11, 2025
Interesting, I'll have to give it a go although I've never done CSS before. Thanks for the help :)
+2
Level 83
Aug 11, 2025
I’ll get on a computer and explain how to do this today when I get a chance. Basically, you’ll use css to tell cells that have the “correct” class added to them to go certain colours. Are they all different colours or all the same?
+1
Level 65
Aug 11, 2025
Thanks Dimby, you are such a gem! 💎

A few will need to stay yellow, a few more cyan, and the rest are fine going clear as normal.

+2
Level 83
Aug 12, 2025
OK, so I think the only way to do this is gonna suck, but it's doable.
+2
Level 83
Aug 12, 2025
You can look at the specific id code of every cell in the table. That lets you do this in the style:

< style >

td.answer-kRYDnBFU.correct {

background-color: yellow !important;

}

< /style >

+2
Level 83
Aug 12, 2025
You have to look up the specific id of every cell in your quiz and then use this to manually do their colours. There's no other way, I don't think. JetPunk puts the priority to change the colour pretty high.