On a regular basis, I utilize these flashcards. Recently, I have started using images as answers. However, I am facing an issue - I am unable to conceal the pictures. My preference is for the images to be hidden when the webpage loads.
function myShowText(id) {
document.querySelector('#' + id + ' .answer').style.color = 'black';
}
function myHideText(id) {
document.querySelector('#' + id + ' .answer').style.color = 'white';
}
.answer {
border-style: solid;
border-color: #287EC7;
color: white;
}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8>
<title> Flashcards VBA </title>
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<script src="js/scripts.js></script>
<h3> Flashcards </h3>
<p class="question">
The primary question
</p>
<div id="bash_start"><
p class="answer">
img src="image.jpg">
</p>
</div>
</body>
</html>