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"> Yes </button> | + | <button id="yes" onclick="counter=yesAnswer(counter)> Yes </button> |
<button id="no"> No </button> | <button id="no"> No </button> | ||
<p id="Commentary"> Placeholder</p> | <p id="Commentary"> Placeholder</p> | ||
Line 16: | Line 16: | ||
<script> | <script> | ||
var counter=0; | var counter=0; | ||
− | |||
− | |||
function yesAnswer(cnt){ | function yesAnswer(cnt){ | ||
Line 35: | Line 33: | ||
} | } | ||
− | + | return cnt+1; | |
} | } | ||
Revision as of 13:16, 25 May 2018
Question 1
Men can also get yeast infections?
Placeholder