I had an image which appears on the click of another image.
I'm posting the code below. Please tell me where I went wrong. Thanks !
JavaScript
function suit1() {
var element = document.getElementById("suit1");
element.setAttribute("Hidden", "False");
}
HTML
<img src="suit1.png" style="width:100%; height:595px;" hidden="true" id="suit1"/>
<img src="point.png" onclick="javascript:suit1()">
suit1()tosuit(). For some reason having1in the function name is causing a problem. Also, changeelement.setAttribute("Hidden", "False");Toelement.hidden=false;Open your browser console, this will display errors.