My game has a small deck of cards. I am using the Stock control to manage each player's hand of 2 cards. During the game, cards in hand are spent/used up, but they still remain in that player's hand. I want to change the appearance of the spent cards. I want to keep them in the same Stock as the unused cards so I can continue to overlap them.
How can I add a CSS class to an individual card in Stock? I see how onItemCreate lets me do this at card creation time, but what about later during the course of the game? Given a card's specific ID, how do I get the corresponding HTML element to manipulate it?
How can I add a CSS class to an individual card in Stock? I see how onItemCreate lets me do this at card creation time, but what about later during the course of the game? Given a card's specific ID, how do I get the corresponding HTML element to manipulate it?