Hi,
You need to add the hidden_field first without a value and then set the
value of it using script tag
NAYAK
On Sat, Jan 10, 2009 at 12:05 PM, Zhao Yi
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>wrote:
>
> I use this code to get other field value:
>
> <%= hidden_field_tag ''project_version_select'',
> $(''other_id'').getValue()%>
>
> but I got compile error. How can I get the value?
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>
--
- NAYAK
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---