/ Published in: JavaScript
Pass this for onclick. Add 'selected_image' id to css.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function showSelected(selected_card) { if (document.getElementById("selected_image")) { document.getElementById("selected_image").setId(''); } selected_card.setId('selected_image'); }