Line 9: | Line 9: | ||
<h1> Question 1</h1> | <h1> Question 1</h1> | ||
<p> Men can also get yeast infections? </p> | <p> Men can also get yeast infections? </p> | ||
− | <button id="yes" onclick=" | + | <button id="yes" onclick="cyesAnswer(counter)"> Yes </button> |
− | <button id="no" onclick=" | + | <button id="no" onclick="noAnswer(counter)"> No </button> |
<h2 id="Commentary"></h2> | <h2 id="Commentary"></h2> | ||
<div class="clear"></div> | <div class="clear"></div> | ||
Line 31: | Line 31: | ||
document.getElementById("Commentary").innerHTML="Oops!"; | document.getElementById("Commentary").innerHTML="Oops!"; | ||
} | } | ||
− | return | + | return ; |
} | } | ||
function noAnswer(cnt){ | function noAnswer(cnt){ | ||
+ | |||
if(cnt==0){ | if(cnt==0){ | ||
document.getElementById("Commentary").innerHTML="Incorrect"; | document.getElementById("Commentary").innerHTML="Incorrect"; | ||
document.getElementById("Description").innerHTML="Up to god knows how many men get diagnosed with testicular yeast infections per year."; | document.getElementById("Description").innerHTML="Up to god knows how many men get diagnosed with testicular yeast infections per year."; | ||
document.getElementById("button").style.visibility = "visible"; | document.getElementById("button").style.visibility = "visible"; | ||
+ | |||
else{ | else{ | ||
document.getElementById("Commentary").innerHTML="Oops!"; | document.getElementById("Commentary").innerHTML="Oops!"; | ||
} | } | ||
− | return | + | |
+ | return ; | ||
} | } | ||
Revision as of 13:34, 25 May 2018
Question 1
Men can also get yeast infections?