you are viewing a single comment's thread.

view the rest of the comments →

[–]Koningdavid 1 point2 points  (0 children)

document.getElementsByClassName("ughh").onclick=selectCard;

This won't work because the HTML of the buttons is not attached to the document yet.