I'm developing an application that displays a series of questions with radio buttons for answers. The user can hit next/prev to cycle through the available questions. This works fine. The user submits their answer, and the answer is stored elsewhere in another data structure. However, if the user goes back to the previous question, the "previous" answer radio button is no longer selected. Is there a best way to handle this problem? The radio buttons are dynamic and vary depending on how many questions an answer has.