Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript image to variable

<img id="score1" class="hidden">
<img id="score2" class="hidden">
<img id="score3" class="hidden">

.hidden { display: none; }

var score2Element = document.getElementById("score2");
score2Element.classList.remove("hidden");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #image #variable
ADD COMMENT
Topic
Name
5+2 =