Skip to content

Instantly share code, notes, and snippets.

@beneater
Created January 27, 2012 00:27
Show Gist options
  • Save beneater/1686115 to your computer and use it in GitHub Desktop.
Save beneater/1686115 to your computer and use it in GitHub Desktop.
<div class="solution" data-type="custom">
<div class="instruction">
Enter the factored expression here:<br>
<input name="response" type="text"></input>
</div>
<div class="guess">jQuery( "div.instruction input" ).val()</div>
<div class="validator-function">
return MATH.isEqual(MATH.parse(guess), SOLUTION)
</div>
<div class="show-guess">
</div>
<div class="show-guess-solutionarea">
jQuery( "div.instruction input" ).val( guess )
</div>
<div class="example">(x+2)^2</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment