I set a click event to elements using $(document).on("click", ".card" , flipCard); When the element is clicked I store it in a variable to l
$(document).on("click", ".card" , flipCard);