Forum Discussion
CatherineG
2 days agoCommunity Member
Bingo Counter JavaScript Bug
Hi folks,
I'm creating a bingo activity where I want to let learners advance only once they've selected 5 (or more) of the bingo rectangles. I've used JavaScript to check if each of the toggled rec...
PhilMayor
23 hours agoSuper Hero
The problem happens more often than you think, it also happens at 5.
You should use references of console.log to troubleshoot some of this.
I think (I have not changed all the triggers) the problem is because your trigger is on the rectangles and not the group so sometimes you press the group and trigger does not fire and you get a miscount, swap the triggers to the group (you will have to remove from the rectangle or the risk is it fires twice.
Just to confirm, if you click carefully and ensure it is the rectangle you click you get 25 every everytime.