On Tue, Dec 6, 2011 at 3:58 AM, Guru R. <[email protected]> wrote:
> <input type="radio" name="radios1" > onclick=this.parentNode.submit() value="<%[email protected]%>"><%[email protected]%> > The code is workin well except that as soon as a radio button is > selected the the page gets refreshed and the selection is not reflected > in that page after that. i need the selection to be visible even after > the onclick event and also when "history.back" is done. So it doesn't sound like it's "working well" to me :-) 1) Why are you doing this form by hand? I'd recommend you read up on Rails forms, including the `radio_button` method. 2) Are you certain that the submit action is saving the input to some persistent storage? -- Hassan Schroeder ------------------------ [email protected] http://about.me/hassanschroeder twitter: @hassan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

