I am working on this fiddle: http://jsfiddle.net/cED6c/7/ I want to make the button text change on click and I tried using the following code:
<input type="button" class="reveal" onClick="this.value=this.value=='Show Answer'?'Hide Answer':'Show Answer'" value="Show Answer">
However, it does not work. How should I implement this? Any help would be great.
inputin your question, but usingbuttonelements in your linked demo?