Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- How do I maintain state of a radio button
December 12, 2003, 8:33 pm
rate this thread
is selected, different content with submit form will render below it.
By default, radio button A is selected with content A below it. I did
this with a body onLoad calling a "show" function for content A. My
issue is, when a user selects different radio buttons (B or C), submit
the form, and returns to the page, radio button A is selected with its
content. I would like the same radio button selected, how do I do
Re: How do I maintain state of a radio button
> submit the form, and returns to the page, radio button A is
> selected with its content. I would like the same radio button
Use your server-side script to store the selected radio button in a
cookie (or session, if you have such a feature available).