I have a clickable tile game:
example here:
http://adaptive.womworld.com/facebook-tabs/demo/
there’s 3 stages and I wanted the app to listen for when all the tiles had the class name select that it would then remove the parent.
At the moment, you have to click to remove this, but if possible i’d like it to happen once the last tile is clicked, regardless of which one.
None of my attempts have been successful, any help, much appreciated.
If you know how many tiles there are total, you can check if the number of tiles with the class equals the total number of tiles.
Just call that at the end of every tile click event.