Grade Quiz After Submit Button Is Clicked
I am attempting to write a simple ten question quiz. However, I am running into a problem; I cannot get the code for grading to run after the submit button is clicked. Can someone
Solution 1:
change this
<div id="button">
<input type="submit" value="submit" />
</div>
to
<div id="buttondiv">
<input type="button"id="button" value="submit" />
</div>
and see
Solution 2:
Use type button instead of submit. Submit will post the form back to the server which will prevent the JavaScript from running
<input id="myButton"type="button" value="submit" />
$("#myButton").click(function(){});
Post a Comment for "Grade Quiz After Submit Button Is Clicked"