From 5d1cef5c440531f19ca0fd56cb8441c0c44a0dec Mon Sep 17 00:00:00 2001 From: patriciarealini Date: Wed, 23 Sep 2015 14:29:28 -0700 Subject: [PATCH] changed img id to class for the card name. --- deal.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deal.js b/deal.js index 4c8c304..757e8b9 100644 --- a/deal.js +++ b/deal.js @@ -120,7 +120,8 @@ var dealCard = function(i) { var img = document.createElement("img"); var cardJustDealt = cards[i]; var orient = randomOrient(); - $(img).attr('id', cardJustDealt); + $(img).addClass(cardJustDealt); + // addClass for card's position (1-7) img.src = ("images/deck/" + cards[i] + ".jpg"); img.alt = cards[i];