Try
page[''id_of_element''].value = "new value"
Ivor
On 9/12/07, AlphaEleven
<kjeffrey1983-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
>
> The problem is that if i want to change the value of a html element
> like textfield in the function in controller, how can i get that?
>
> example:
>
> def
> ......
> #like following
> <javascript tag change the element''s value>
>
> end
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---