First of all, thank you to WestWeb who helped me figure out how to go back to a previous question in my jquery quiz. (http://www.webdeveloper.com/forum/sh...d.php?t=263765)
Now, if a user goes back to the previous question on the quiz I would like to uncheck the radio button that they selected. I have spent 2 hours searching for solutions and can't get one to work!
My code in html is:
And the goback function is:Code:<input type="button" onclick="goback(2)" value="<--Go Back to the Previous Question">
I would think there is something I could add to the goback function that would uncheck the radio buttons on the page, but so far I can't find a solution!Code:function goback(currentquestion) { $("#question" + currentquestion).hide(); $("#question" + (currentquestion-1)).fadeIn(); }


Reply With Quote
Bookmarks