|
Posted by Sym on 08/09/06 14:37
I have had this problem - i basicaly have mini form which is just part
of a page, depending on the radio pressed a different set of inputs are
displayed (hiding/showing divs). The first radio is the default, as is
the div that goes with it.
The problem is if the user presses a radio and then follows a link
elsewhere on the page, when they navigate back, the default div is
displayed, but the radio remains as it was previously selected, so you
need to click on the radio again to get the correct div displaying.
The way round this i suppose would be a script on the body onload event
doing something like this.form.radioname[0].checked = true; however at
that moment in time the form does not exist so you can not script the
radio. I presume the way round this would be some loop or timer in this
function ..... any other ideas ?
rgds
Symeon.
[Back to original message]
|